Publish content on user unblock event Drupal 7 I know that this is most probably and easy question but I simply can't get it to work. I have a custom module which generates a form to create a content (unpublished) of a certain type and also register the anonymous user creating that content with a username and password. 

I am using the User verification module  to send a validation mail, and when the client clicks the link the account is unblocked. 

I want a rule (I tried using the Rules module) to publish the content when the account is unblocked or validated (i need it to work on one of these to events) , but I can't find either of these events, nor can I manage to set the data selector to publish that specific content when setting the action to publish content. 

If anyone can explain to me what I am missing or doing wrong it would help me a lot.
In your custom module you could use a hook_user_update and if the $account->original->status == 0 &amp; $account->status == 1 (meaning that the user just got active [untested]), publish the content.

something like:

&lt;?php
/**
 * Implementation of hook_user_update()
 */
function MODULE_user_update(&amp;$edit, $account, $category) {
  if($account-&gt;status &amp;&amp; $account-&gt;status != $account-&gt;original-&gt;status) {
    // with the user id you can find (i suppose) the content this user has just 
    // created and publish it, using something like the link below
  }
}


publish-unpublish