_trigger_tab_information
function _trigger_tab_information
_trigger_tab_information()
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.
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; }
© 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_tab_information/7.x