From 3902b030c1db3ace9b6f99c8ad85719a1e0f5dcc Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 9 Mar 2010 23:17:06 -0700 Subject: [PATCH] Rename 'postsent' hook to 'post_sent' to be consistent with new 'pre_sent' hook. --- imp/config/hooks.php.dist | 4 ++-- imp/docs/UPGRADING | 7 ++++++- imp/lib/Compose.php | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/imp/config/hooks.php.dist b/imp/config/hooks.php.dist index 742fd705f..627d86442 100644 --- a/imp/config/hooks.php.dist +++ b/imp/config/hooks.php.dist @@ -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. // } diff --git a/imp/docs/UPGRADING b/imp/docs/UPGRADING index 751366db3..dd6f6e9e2 100644 --- a/imp/docs/UPGRADING +++ b/imp/docs/UPGRADING @@ -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 diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index fef73f780..54588f436 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -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; -- 2.11.0