diff -r 07239de796bb -r e756a8c72c3d cms/drupal/modules/trigger/trigger.api.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cms/drupal/modules/trigger/trigger.api.php Fri Sep 08 12:04:06 2017 +0200 @@ -0,0 +1,78 @@ + array( + 'node_presave' => array( + 'label' => t('When either saving new content or updating existing content'), + ), + 'node_insert' => array( + 'label' => t('After saving new content'), + ), + 'node_update' => array( + 'label' => t('After saving updated content'), + ), + 'node_delete' => array( + 'label' => t('After deleting content'), + ), + 'node_view' => array( + 'label' => t('When content is viewed by an authenticated user'), + ), + ), + ); +} + +/** + * Alter triggers declared by hook_trigger_info(). + * + * @param $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. + */ +function hook_trigger_info_alter(&$triggers) { + $triggers['node']['node_insert']['label'] = t('When content is saved'); +} + +/** + * @} End of "addtogroup hooks". + */