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) |
Definition in file trigger.admin.inc.
_trigger_get_hook_actions | ( | $ | hook, | |
$ | op, | |||
$ | type = NULL | |||
) |
Get the actions that have already been defined for this type-hook-op combination.
$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'. |
Definition at line 273 of file trigger.admin.inc.
References $op, $result, $type, db_fetch_object(), and db_query().
Referenced by trigger_assign_form().
trigger_assign | ( | $ | type = NULL |
) |
Build the form that allows users to assign actions to hooks.
$type | Name of hook. |
Definition at line 17 of file trigger.admin.inc.
References $op, $output, $type, drupal_get_form(), drupal_goto(), and module_invoke_all().
trigger_assign_form | ( | $ | form_state, | |
$ | hook, | |||
$ | op, | |||
$ | description | |||
) |
Create the form definition for assigning an action to a hook-op combination.
$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. |
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().
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().
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().
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().