function trigger_forms

Implements hook_forms().

We re-use code by using the same assignment form definition for each hook.

File

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