node_action_info

6 node.module node_action_info()
7 node.module node_action_info()
8 node.module node_action_info()

Implements hook_action_info().

File

core/modules/node/node.module, line 3552
The core module that allows content to be submitted to the site.

Code

function node_action_info() {
  return array(
    'node_publish_action' => array(
      'type' => 'node', 
      'label' => t('Publish content'), 
      'configurable' => FALSE, 
      'behavior' => array('changes_property'), 
      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
    ), 
    'node_unpublish_action' => array(
      'type' => 'node', 
      'label' => t('Unpublish content'), 
      'configurable' => FALSE, 
      'behavior' => array('changes_property'), 
      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
    ), 
    'node_make_sticky_action' => array(
      'type' => 'node', 
      'label' => t('Make content sticky'), 
      'configurable' => FALSE, 
      'behavior' => array('changes_property'), 
      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
    ), 
    'node_make_unsticky_action' => array(
      'type' => 'node', 
      'label' => t('Make content unsticky'), 
      'configurable' => FALSE, 
      'behavior' => array('changes_property'), 
      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
    ), 
    'node_promote_action' => array(
      'type' => 'node', 
      'label' => t('Promote content to front page'), 
      'configurable' => FALSE, 
      'behavior' => array('changes_property'), 
      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
    ), 
    'node_unpromote_action' => array(
      'type' => 'node', 
      'label' => t('Remove content from front page'), 
      'configurable' => FALSE, 
      'behavior' => array('changes_property'), 
      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
    ), 
    'node_assign_owner_action' => array(
      'type' => 'node', 
      'label' => t('Change the author of content'), 
      'configurable' => TRUE, 
      'behavior' => array('changes_property'), 
      'triggers' => array('node_presave', 'comment_insert', 'comment_update', 'comment_delete'),
    ), 
    'node_save_action' => array(
      'type' => 'node', 
      'label' => t('Save content'), 
      'configurable' => FALSE, 
      'triggers' => array('comment_insert', 'comment_update', 'comment_delete'),
    ), 
    'node_unpublish_by_keyword_action' => array(
      'type' => 'node', 
      'label' => t('Unpublish content containing keyword(s)'), 
      'configurable' => TRUE, 
      'triggers' => array('node_presave', 'node_insert', 'node_update'),
    ),
  );
}
Login or register to post comments