function trigger_forms in Drupal 6
Same name and namespace in other branches
- 7 modules/trigger/trigger.module \trigger_forms()
Implementation of hook_forms(). We reuse code by using the same assignment form definition for each node-op combination.
File
- modules/
trigger/ trigger.module, line 169 - Enables functions to be stored and executed at a later time when triggered by other modules or by one of Drupal's core API hooks.
Code
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;
}