function _trigger_get_all_info

7.x trigger.module _trigger_get_all_info()

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 drupal-7.x/modules/trigger/trigger.module
Implements hook_forms().
_trigger_tab_information in drupal-7.x/modules/trigger/trigger.module
Gathers information about tabs on the triggers administration screen.

File

drupal-7.x/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;
}