From: pdontthink Date: Thu, 15 Dec 2011 23:20:47 +0000 (+0000) Subject: Add plugin compatiblility info X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=395c3216ac2791704149054f0569db0be696a003;p=squirrelmail.git Add plugin compatiblility info git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14232 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index 3ba329b4..ff5cb9bc 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1185,6 +1185,12 @@ function showInputForm ($session, $values=false) { // to do; SquirrelMail itself will add the final "return true". // Onsubmit text is enclosed inside of double quotes, so plugins // need to quote accordingly. + // + // Also, plugin authors should try to retain compatibility with + // the Compose Extras plugin by resetting its compose submit + // counter when preventing form submit. Use this code: + // if (your-code-here) { submit_count = 0; return false; } + // if (checkForJavascript()) { if (empty($compose_onsubmit)) $compose_onsubmit = array();