function trigger_forms
trigger_forms()
Implements hook_forms().
We re-use code by using the same assignment form definition for each hook.
File
- modules/trigger/trigger.module, line 215
- Enables functions to be stored and executed at a later time.
Code
function trigger_forms() { $trigger_info = _trigger_get_all_info(); $forms = array(); foreach ($trigger_info as $module => $hooks) { foreach ($hooks as $hook => $description) { $forms['trigger_' . $hook . '_assign_form'] = array('callback' => 'trigger_assign_form'); } } return $forms; }
© 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_forms/7.x