hook_trigger_info_alter

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 hook_trigger_info_alter(&$triggers)

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

Code

modules/trigger/trigger.api.php, line 72

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