From: Michael M Slusarz Date: Wed, 10 Mar 2010 06:17:06 +0000 (-0700) Subject: Rename 'postsent' hook to 'post_sent' to be consistent with new 'pre_sent' hook. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3902b030c1db3ace9b6f99c8ad85719a1e0f5dcc;p=horde.git Rename 'postsent' hook to 'post_sent' to be consistent with new 'pre_sent' hook. --- 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;