workflow_rules.rules.inc in Workflow 7.2
Same filename and directory in other branches
Rules integration for the Workflow module.
Contains _info() hooks. Callbacks are implemented in file workflow.rules.inc.
File
workflow_rules/workflow_rules.rules.incView source
<?php
/**
* @file
* Rules integration for the Workflow module.
*
* Contains _info() hooks.
* Callbacks are implemented in file workflow.rules.inc.
*/
/*
* Include the Condition and Actions for Nodes and Entity.
* They are in separate files, but must be kept in sync.
* They contain separate logic for the 'conventional' Workflow Node API
* and the 'new' Workfow Field API.
*/
require_once dirname(__FILE__) . '/workflow_rules.node.inc';
require_once dirname(__FILE__) . '/workflow_rules.field.inc';
/**
* Implements hook_rules_event_info().
*
* @todo: add support for any entity type in hook_rules_event_info.
*/
function workflow_rules_rules_event_info() {
$events = array();
if (module_exists('workflownode')) {
$events += _workflownode_rules_event_info();
}
return $events;
}
/**
* Implements hook_rules_condition_info().
*/
function workflow_rules_rules_condition_info() {
$conditions = array();
if (module_exists('workflownode')) {
$conditions += _workflownode_rules_condition_info();
}
return $conditions;
}
/**
* Implements hook_rules_action_info().
*/
function workflow_rules_rules_action_info() {
$actions = array();
if (module_exists('workflownode')) {
$actions += _workflownode_rules_action_info();
}
if (module_exists('workflowfield')) {
$actions += _workflowfield_rules_action_info();
}
return $actions;
}
Functions
Name | Description |
---|---|
workflow_rules_rules_action_info | Implements hook_rules_action_info(). |
workflow_rules_rules_condition_info | Implements hook_rules_condition_info(). |
workflow_rules_rules_event_info | Implements hook_rules_event_info(). |