You are here

function custom_pub_rules_action_info in Custom Publishing Options 7

Implements hook_rules_action_info().

File

./custom_pub.rules.inc, line 39
Rules integration for Custom Publishing Options module.

Code

function custom_pub_rules_action_info() {
  return array(
    'custom_pub_rules_action_set_publish_type' => array(
      'label' => t('Set a Custom Publishing Option value'),
      'group' => t('Node'),
      'parameter' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Content'),
        ),
        'option' => array(
          'type' => 'text',
          'label' => t('Custom publishing option'),
          'options list' => 'custom_pub_types_list',
        ),
        'toggled' => array(
          'type' => 'integer',
          'label' => t('Toggled state'),
          'options list' => 'custom_pub_rules_action_set_publish_type_options',
        ),
      ),
    ),
  );
}