You are here

function hook_trigger_info_alter in Drupal 7

Alter triggers declared by hook_trigger_info().

Parameters

$triggers: Array of trigger information returned by hook_trigger_info() implementations. Modify this array in place. See hook_trigger_info() for information on what this might contain.

Related topics

2 invocations of hook_trigger_info_alter()
trigger_assign in modules/trigger/trigger.admin.inc
Builds a form that allows users to assign actions to triggers.
_trigger_get_all_info in modules/trigger/trigger.module
Retrieves and caches information from hook_trigger_info() implementations.

File

modules/trigger/trigger.api.php, line 72
Hooks provided by the Trigger module.

Code

function hook_trigger_info_alter(&$triggers) {
  $triggers['node']['node_insert']['label'] = t('When content is saved');
}