? hook-update-status-alter-94154-134.patch
? info-file-alter-217912.patch
? orphan-hooks-217912-32.patch
? developer/docs-252013-27.patch
? developer/element_val_submit_validate_210463.patch
? developer/fix-groups-215958.patch
? developer/hook_translated_menu_link_alter.patch
? developer/menu_link_alter.patch
? developer/submit_execute_210463.patch
? developer/hooks/hook-help-154064-26.patch
? developer/hooks/hook-help-154064-28.patch
? developer/topics/FAPI-QS-210463-2.patch
Index: developer/hooks/core.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/docs/developer/hooks/core.php,v
retrieving revision 1.199
diff -u -p -r1.199 core.php
--- developer/hooks/core.php	20 Sep 2008 03:26:51 -0000	1.199
+++ developer/hooks/core.php	21 Sep 2008 19:00:55 -0000
@@ -96,6 +96,66 @@ function hook_actions_delete($aid) {
 }
 
 /**
+ * Inform the actions code that a module implements certain actions.
+ *
+ * Each implementation fo hook_action_info() shoudl return an array keyed
+ * by the action name.  Each element is an array with keys 'type',
+ * 'description', 'configurable', and 'hooks'. 
+ *
+ * @see trigger_example_hook_info().
+ *
+ * mymodule_action_info() {
+ *   return array(
+ *     'mymodule_functiondescription_action' => array(
+ *       'type' => 'node',
+ *       'description' => t('Save node'),
+ *       'configurable' => FALSE,
+ *       'hooks' => array(
+ *         'nodeapi' => array('delete', 'insert', 'update', 'view'),
+ *         'comment' => array('delete', 'insert', 'update', 'view'),
+ *       )
+ *     )
+ *   );
+ * }
+ */
+function hook_action_info() {
+  return array(
+    'node_publish_action' => array(
+      'type' => 'node',
+      'description' => t('Publish post'),
+      'configurable' => FALSE,
+      'behavior' => array('changes_node_property'),
+      'hooks' => array(
+        'nodeapi' => array('presave'),
+        'comment' => array('insert', 'update'),
+      ),
+    ),
+    'node_unpublish_action' => array(
+      'type' => 'node',
+      'description' => t('Unpublish post'),
+      'configurable' => FALSE,
+      'behavior' => array('changes_node_property'),
+      'hooks' => array(
+        'nodeapi' => array('presave'),
+        'comment' => array('delete', 'insert', 'update'),
+      ),
+    ),
+  );
+}
+
+/**
+ * Alter the actions declared by another module.
+ *
+ * Called by actions_list() to allow modules to alter the return
+ * values from implementations of hook_action_info().
+ *
+ * @see trigger_example_action_info_alter().
+ */
+function hook_action_info_alter(&$actions) {
+  $actions['node_unpublish_action']['description'] = t('Unpublish and remove from public view.');
+}
+
+/**
  * Declare a block or set of blocks.
  *
  * Any module can export a block (or blocks) to be displayed by defining
