trigger_forms

Versions
6 – 7
trigger_forms()

Implementation of hook_forms(). We reuse code by using the same assignment form definition for each node-op combination.

Code

modules/trigger/trigger.module, line 168

<?php
function trigger_forms() {
  $hooks = module_invoke_all('hook_info');
  foreach ($hooks as $module => $info) {
    foreach ($hooks[$module] as $hook => $ops) {
      foreach ($ops as $op => $description) {
        $forms['trigger_'. $hook .'_'. $op .'_assign_form'] = array('callback' => 'trigger_assign_form');
      }
    }
  }

  return $forms;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.