New action for Views Bulk Operations I'm trying to add some custom actions to my Views Bulk Operations, but for some reason, they don't appear in the list.

This is my code (got it from Drupal.org, so I guess this is a working code...)

function publication_action_info() {
  return array(
    'node_unpublish_action' =&gt; array(
      'description' =&gt; t('Unpublisedh node--'), 
      'type' =&gt; 'node', 
      'configurable' =&gt; FALSE, 
      'hooks' =&gt; array(
        'node' =&gt; array('insert', 'update'),
      ),
    ), 
    'node_unpublish_by_keyword_action' =&gt; array(
      'description' =&gt; t('Unqsdfqsdfpublish node containing keyword(s)--'), 
      'type' =&gt; 'node', 
      'configurable' =&gt; TRUE, 
      'hooks' =&gt; array(
        'node' =&gt; array('insert', 'update'),
      ),
    ),
  );
}


So what's wrong with my code or logic to make this thing to work?
Here is the way, I found for D7...

/**
 * Implementation of hook_action_info().
 */
function MODULE_action_info() {
   $action = array(
    'MY_ACTION_NAME' =&gt; array(
      'label' =&gt; t('MY ACTION LABEL.'),
      'type' =&gt; 'node',
      'configurable' =&gt; FALSE,
      'triggers' =&gt; array('any'),
    ),
 );
 return $action;
}

/**
 * Action function for MY_ACTION_NAME.
 */
function MY_ACTION_NAME(&amp;$entity, $context = array()) {
  // Your code here.
}


Now just add the action MY ACTION LABEL in VBO list.