function _workflownode_rules_condition_info in Workflow 7.2
Implements subfunction of hook_rules_condition_info().
1 call to _workflownode_rules_condition_info()
- workflow_rules_rules_condition_info in workflow_rules/
workflow_rules.rules.inc - Implements hook_rules_condition_info().
File
- workflow_rules/
workflow_rules.node.inc, line 33 - Rules integration for the Workflow module with Node API.
Code
function _workflownode_rules_condition_info() {
return array(
'workflow_check_transition' => array(
'group' => t('Workflow'),
'label' => t('Content makes a specific transition'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('Node'),
'description' => t('The node whose workflow state is being checked.'),
),
'old_state' => array(
'type' => 'list<integer>',
'label' => t('Old workflow state'),
'options list' => '_workflow_rules_workflow_get_options',
'description' => t('The workflow state moved from.'),
),
'new_state' => array(
'type' => 'list<integer>',
'label' => t('New workflow state'),
'options list' => '_workflow_rules_workflow_get_options',
'description' => t('The workflow state moved to.'),
),
),
'base' => '_workflow_rules_node_check_transition',
'callbacks' => array(
'execute' => '_workflow_rules_node_check_transition',
),
),
'workflow_check_state' => array(
'group' => t('Workflow'),
'label' => t('Content has a workflow state'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('Node'),
'description' => t('The node to compare the current workflow state of.'),
),
'workflow_state' => array(
'type' => 'list<integer>',
'label' => t('Compare workflow state'),
'options list' => '_workflow_rules_workflow_get_options',
'description' => t('The possible workflow states to compare against.'),
),
),
'base' => '_workflow_rules_node_check_state',
'callbacks' => array(
'execute' => '_workflow_rules_node_check_state',
),
),
'workflow_check_previous_state' => array(
'group' => t('Workflow'),
'label' => t('Content has a previous workflow state'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('Node'),
'description' => t('The node to compare the previous workflow state of.'),
),
'workflow_state' => array(
'type' => 'list<integer>',
'label' => t('Compare workflow state'),
'options list' => '_workflow_rules_workflow_get_options',
'description' => t('The possible workflow states to compare against.'),
),
),
'base' => '_workflow_rules_node_check_previous_state',
'callbacks' => array(
'execute' => '_workflow_rules_node_check_previous_state',
),
),
);
}