### Eclipse Workspace Patch 1.0
#P d7dev
Index: modules/trigger/trigger.api.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/trigger/trigger.api.php,v
retrieving revision 1.6
diff -u -r1.6 trigger.api.php
--- modules/trigger/trigger.api.php	26 Mar 2010 17:14:46 -0000	1.6
+++ modules/trigger/trigger.api.php	20 Apr 2010 20:26:54 -0000
@@ -12,7 +12,7 @@
  */
 
 /**
- * Declares triggers (events) for users to assign actions to.
+ * Declare triggers (events) for users to assign actions to.
  *
  * This hook is used by the trigger module to create a list of triggers (events)
  * that users can assign actions to. Your module is responsible for detecting
@@ -20,8 +20,6 @@
  * out which actions the user has associated with your trigger, and then calling
  * actions_do() to fire off the actions.
  *
- * @see hook_action_info()
- *
  * @return
  *   A nested associative array.
  *   - The outermost key is the name of the module that is defining the triggers.
@@ -38,6 +36,9 @@
  *   For example, the trigger set for the 'node' module has 'node' as the
  *   outermost key and defines triggers for 'node_insert', 'node_update',
  *   'node_delete' etc. that fire when a node is saved, updated, etc.
+ *
+ * @see hook_action_info()
+ * @see hook_trigger_info_alter()
  */
 function hook_trigger_info() {
   return array(
@@ -62,5 +63,17 @@
 }
 
 /**
+ * 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".
  */
