function 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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.