You are here

function _rules_rules_collect_items in Rules 7.2

Returns all items for a hook applying the right module defaults.

7 calls to _rules_rules_collect_items()
rules_rules_action_info in ./rules.rules.inc
Implements hook_rules_action_info().
rules_rules_category_info in ./rules.rules.inc
Implements hook_rules_category_info().
rules_rules_condition_info in ./rules.rules.inc
Implements hook_rules_condition_info().
rules_rules_data_info in ./rules.rules.inc
Implements hook_rules_data_info().
rules_rules_data_processor_info in ./rules.rules.inc
Implements hook_rules_data_processor_info().

... See full list

File

./rules.rules.inc, line 45
Includes any rules integration provided by the module.

Code

function _rules_rules_collect_items($hook) {
  $items = array();
  foreach (rules_core_modules() as $module) {
    if (function_exists($function = "rules_{$module}_{$hook}")) {
      $items += (array) $function();
    }
  }
  return $items;
}