You are here

function _trigger_get_all_info in Drupal 7

Retrieves and caches information from hook_trigger_info() implementations.

Return value

Array of all triggers.

2 calls to _trigger_get_all_info()
trigger_forms in modules/trigger/trigger.module
Implements hook_forms().
_trigger_tab_information in modules/trigger/trigger.module
Gathers information about tabs on the triggers administration screen.

File

modules/trigger/trigger.module, line 640
Enables functions to be stored and executed at a later time.

Code

function _trigger_get_all_info() {
  $triggers =& drupal_static(__FUNCTION__);
  if (!isset($triggers)) {
    $triggers = module_invoke_all('trigger_info');
    drupal_alter('trigger_info', $triggers);
  }
  return $triggers;
}