C:/drupal/modules/trigger/trigger.admin.inc File Reference

Go to the source code of this file.


Functions

 trigger_assign ($type=NULL)
 trigger_unassign ($form_state, $hook=NULL, $op=NULL, $aid=NULL)
 trigger_unassign_submit ($form, &$form_state)
 trigger_assign_form ($form_state, $hook, $op, $description)
 trigger_assign_form_validate ($form, $form_state)
 trigger_assign_form_submit ($form, $form_state)
 theme_trigger_display ($element)
 _trigger_get_hook_actions ($hook, $op, $type=NULL)


Detailed Description

Admin page callbacks for the trigger module.

Definition in file trigger.admin.inc.


Function Documentation

_trigger_get_hook_actions ( hook,
op,
type = NULL 
)

Get the actions that have already been defined for this type-hook-op combination.

Parameters:
$type One of 'node', 'user', 'comment'.
$hook The name of the hook for which actions have been assigned, e.g. 'nodeapi'.
$op The hook operation for which the actions have been assigned, e.g., 'view'.
Returns:
An array of action descriptions keyed by action IDs.

Definition at line 273 of file trigger.admin.inc.

References $op, $result, $type, db_fetch_object(), and db_query().

Referenced by trigger_assign_form().

Here is the call graph for this function:

trigger_assign ( type = NULL  ) 

Build the form that allows users to assign actions to hooks.

Parameters:
$type Name of hook.
Returns:
HTML form.

Definition at line 17 of file trigger.admin.inc.

References $op, $output, $type, drupal_get_form(), drupal_goto(), and module_invoke_all().

Here is the call graph for this function:

trigger_assign_form ( form_state,
hook,
op,
description 
)

Create the form definition for assigning an action to a hook-op combination.

Parameters:
$form_state Information about the current form.
$hook The name of the hook, e.g., 'nodeapi'.
$op The name of the hook operation, e.g., 'insert'.
$description A plain English description of what this hook operation does.
Returns:
forms
See also:
trigger_assign_form_validate()

trigger_assign_form_submit()

Definition at line 114 of file trigger.admin.inc.

References $op, _trigger_get_hook_actions(), actions_actions_map(), actions_get_all_actions(), actions_list(), l(), and t().

Here is the call graph for this function:

trigger_assign_form_submit ( form,
form_state 
)

Submit function for trigger_assign_form().

Definition at line 200 of file trigger.admin.inc.

References actions_function_lookup(), actions_list(), db_query(), db_result(), drupal_set_message(), and t().

Here is the call graph for this function:

trigger_assign_form_validate ( form,
form_state 
)

Validation function for trigger_assign_form().

Makes sure that the user is not re-assigning an action to an event.

Definition at line 187 of file trigger.admin.inc.

References actions_function_lookup(), db_query(), db_result(), form_set_error(), and t().

Here is the call graph for this function:

trigger_unassign_submit ( form,
&$  form_state 
)

Definition at line 81 of file trigger.admin.inc.

References actions_function_lookup(), actions_get_all_actions(), check_plain(), db_query(), drupal_goto(), drupal_set_message(), t(), and watchdog().

Here is the call graph for this function:


Generated on Mon Jun 2 15:08:32 2008 for SimpleTest by  1.5.5