30,33c30,35 < if (isset($hook[$type])) { < foreach ($hook[$type] as $op => $description) { < $form_id = 'trigger_'. $type .'_'. $op .'_assign_form'; < $output .= drupal_get_form($form_id, $type, $op, $description['runs when']); --- > if ($module == $type) { > foreach ($hook as $hook_name => $hook_details) { > foreach ($hook_details as $op => $description) { > $form_id = 'trigger_'. $hook_name .'_'. $op .'_assign_form'; > $output .= drupal_get_form($form_id, $hook_name, $op, $description['runs when']); > }