You are here

function node_convert_rules_action_info in Node Convert 7

Implements hook_rules_action_info().

File

./node_convert.rules.inc, line 27
rules integration for the node_convert module

Code

function node_convert_rules_action_info() {
  $actions = array();
  $actions['node_convert_convert_nodes_using_template_rules_callback'] = array(
    'label' => t('Convert a node'),
    'group' => t('Node'),
    'parameter' => array(
      'template' => array(
        'type' => 'text',
        'label' => t('Select the Convert Template you wish to use.'),
        'options list' => 'node_convert_rules_template_list',
      ),
      'node' => array(
        'type' => 'node',
        'label' => t('Node to convert'),
      ),
    ),
  );
  return $actions;
}