You are here

function nodequeue_action_info in Nodequeue 5.2

Same name in this branch
  1. 5.2 nodequeue.actions.inc \nodequeue_action_info()
  2. 5.2 nodequeue.workflow_ng.inc \nodequeue_action_info()
Same name and namespace in other branches
  1. 6.2 nodequeue.module \nodequeue_action_info()
  2. 7.3 includes/nodequeue.actions.inc \nodequeue_action_info()
  3. 7.2 nodequeue.module \nodequeue_action_info()

File

./nodequeue.workflow_ng.inc, line 13
nodequeue_workflow_ng.inc

Code

function nodequeue_action_info() {
  $info = array();
  $info['nodequeue_workflow_ng_action_load_nodequeue'] = array(
    '#label' => t('Load nodequeue'),
    '#new arguments' => array(
      'nodequeue' => array(
        '#entity' => 'nodequeue',
        '#label' => t('Nodequeue'),
      ),
    ),
    '#description' => t('Load a nodequeue as a new argument. This action must be used before any other action on
        a nodequeue can be performed.'),
    '#module' => 'Nodequeue',
  );
  $info['nodequeue_workflow_ng_action_add_node_to_nodequeue'] = array(
    '#label' => t('Add content to nodequeue'),
    '#arguments' => array(
      'node' => array(
        '#entity' => 'node',
        '#label' => t('Content which will be added to the nodequeue'),
      ),
      'nodequeue' => array(
        '#entity' => 'nodequeue',
        '#label' => t('Nodequeue that content will be added to'),
      ),
    ),
    '#description' => t('Add content to a loaded nodequeue.'),
    '#module' => 'Nodequeue',
  );
  $info['nodequeue_workflow_ng_action_remove_node_from_nodequeue'] = array(
    '#label' => t('Remove content from nodequeue'),
    '#arguments' => array(
      'node' => array(
        '#entity' => 'node',
        '#label' => t('Content which will be removed from the nodequeue'),
      ),
      'nodequeue' => array(
        '#entity' => 'nodequeue',
        '#label' => t('Nodequeue that content will be removed from'),
      ),
    ),
    '#description' => t('Remove content from a loaded nodequeue. If a content is in the queue more than once,
        only the first (closest to 0 position, or the front of the queue) will be removed.'),
    '#module' => 'Nodequeue',
  );
  $info['nodequeue_workflow_ng_action_delete_nodequeue'] = array(
    '#label' => t('Delete a nodequeue'),
    '#arguments' => array(
      'nodequeue' => array(
        '#entity' => 'nodequeue',
        '#label' => t('The nodequeue which will be deleted'),
      ),
    ),
    '#description' => t('Delete a nodequeue.'),
    '#module' => 'Nodequeue',
  );
  $info['nodequeue_workflow_ng_action_add_nodequeue'] = array(
    '#label' => t('Add nodequeue'),
    '#new arguments' => array(
      'nodequeue' => array(
        '#entity' => 'nodequeue',
        '#label' => t('Nodequeue'),
      ),
    ),
    '#description' => t('Create a new nodequeue.'),
    '#module' => 'Nodequeue',
  );
  return $info;
}