1 node.module node_action_info()

Implements hook_action_info().

File

core/modules/node/node.module, line 3409
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'),
      'callback' => 'node_publish_action'
    ),
    'node_unpublish_action' => array(
      'type' => 'node',
      'label' => t('Unpublish content'),
      'callback' => 'node_unpublish_action'
    ),
    'node_make_sticky_action' => array(
      'type' => 'node',
      'label' => t('Make content sticky'),
      'callback' => 'node_make_sticky_action',
    ),
    'node_make_unsticky_action' => array(
      'type' => 'node',
      'label' => t('Make content unsticky'),
      'callback' => 'node_make_unsticky_action',
    ),
    'node_promote_action' => array(
      'type' => 'node',
      'label' => t('Promote content'),
      'callback' => 'node_promote_action',
    ),
    'node_unpromote_action' => array(
      'type' => 'node',
      'label' => t('Remove promotion'),
      'callback' => 'node_unpromote_action',
    ),
    'node_delete_action' => array(
      'type' => 'node',
      'label' => t('Delete content'),
      'callback' => 'node_delete_action',
    ),
  );
}