function hook_trigger_info_alter
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
Code
function hook_trigger_info_alter(&$triggers) {
$triggers['node']['node_insert']['label'] = t('When content is saved');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.