Rename 'postsent' hook to 'post_sent' to be consistent with new 'pre_sent' hook.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 10 Mar 2010 06:17:06 +0000 (23:17 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 10 Mar 2010 06:17:50 +0000 (23:17 -0700)
imp/config/hooks.php.dist
imp/docs/UPGRADING
imp/lib/Compose.php

index 742fd70..627d864 100644 (file)
@@ -171,9 +171,9 @@ class IMP_Hooks
      * Perform an action after a message has been sent successfully.
      *
      * @param Horde_Mime_Part $message     The message content object.
-     * @param Horde_Mime_Headers $message  The message headers object.
+     * @param Horde_Mime_Headers $headers  The message headers object.
      */
-//    function postsent($message, $headers)
+//    function post_sent($message, $headers)
 //    {
 //        // Do action here -- no return value from this hook.
 //    }
index 751366d..dd6f6e9 100644 (file)
@@ -70,8 +70,13 @@ your ``config/prefs.php`` file and your preferences backend::
 Hooks
 -----
 
+
 * hooks.php has changed
-* Hook: spam_bounce -> spam_email
+
+The following hooks have been renamed:
+  OLD: spam_bounce -> NEW: spam_email
+  OLD: postsent -> NEW: post_sent
+
 * imp_hook_vinfo has been removed - use preauth hook instead
 * msglist_format hook has been removed - instead:
 *  x-priority now handled in the core code
index fef73f7..54588f4 100644 (file)
@@ -707,7 +707,7 @@ class IMP_Compose
 
         /* Call post-sent hook. */
         try {
-            Horde::callHook('postsent', array($save_msg['msg'], $headers), 'imp');
+            Horde::callHook('post_sent', array($save_msg['msg'], $headers), 'imp');
         } catch (Horde_Exception_HookNotSet $e) {}
 
         return $sent_saved;