You are here

function workflow_rules_rules_condition_info in Workflow 6

Same name and namespace in other branches
  1. 6.2 workflow_rules/workflow_rules.module \workflow_rules_rules_condition_info()
  2. 7.2 workflow_rules/workflow_rules.rules.inc \workflow_rules_rules_condition_info()
  3. 7 workflow_rules/workflow_rules.rules.inc \workflow_rules_rules_condition_info()

Implementation of hook_condition_info().

File

workflow_rules/workflow_rules.module, line 43
Rules integration for the Workflow module

Code

function workflow_rules_rules_condition_info() {
  return array(
    'workflow_rules_check_transition' => array(
      'label' => t('Check workflow transition'),
      'arguments' => array(
        'old_state' => array(
          'type' => 'workflow_state',
          'label' => t('Old workflow state'),
        ),
        'new_state' => array(
          'type' => 'workflow_state',
          'label' => t('New workflow state'),
        ),
      ),
      'help' => t('Evaluates to TRUE, if the workflow being updated is moved from state A to state B'),
      'module' => 'Workflow',
    ),
    'workflow_rules_check_state' => array(
      'label' => t('Content has workflow state'),
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Node'),
        ),
      ),
      'help' => t('Check state of workflow for a content'),
      'module' => 'Workflow',
    ),
  );
}