function _trigger_tab_information in Drupal 7
Gathers information about tabs on the triggers administration screen.
Return value
Array of modules that have triggers, with the keys being the machine-readable name of the module, and the values being the human-readable name of the module.
2 calls to _trigger_tab_information()
- trigger_help in modules/
trigger/ trigger.module - Implements hook_help().
- trigger_menu in modules/
trigger/ trigger.module - Implements hook_menu().
File
- modules/
trigger/ trigger.module, line 659 - Enables functions to be stored and executed at a later time.
Code
function _trigger_tab_information() {
// Gather information about all triggers and modules.
$trigger_info = _trigger_get_all_info();
$modules = system_get_info('module');
$modules = array_intersect_key($modules, $trigger_info);
$return_info = array();
foreach ($modules as $name => $info) {
$return_info[$name] = $info['name'];
}
return $return_info;
}