function state_flow_rules_condition_info in State Machine 7.2
Same name and namespace in other branches
- 7 modules/state_flow/state_flow.rules.inc \state_flow_rules_condition_info()
Implements hook_rules_condition_info().
File
- modules/
state_flow/ state_flow.rules.inc, line 30 - Rules integration for State Flow.
Code
function state_flow_rules_condition_info() {
$items = array();
$items['state_flow_state'] = array(
'label' => t('Content is in state'),
'group' => t('State Flow'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('Content'),
'description' => t('The node content for which the current state should be checked.'),
),
'workflow_state' => array(
'type' => 'text',
'label' => t('State'),
),
),
'base' => 'state_flow_rules_condition_node_is_state',
);
return $items;
}