function _trigger_get_all_info

_trigger_get_all_info()

Retrieves and caches information from hook_trigger_info() implementations.

Return value

Array of all triggers.

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!trigger!trigger.module/function/_trigger_get_all_info/7.x