Re: compose_button_row hook is never call
Paul Lesniewski <[email protected]>
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 19, 2010 at 11:59 PM, nimrod cohen <[email protected]> wrote: > hi > > i'm using squirrelmail version 1.5.2 with address book database backend > enable > > i want to add a group button to the compose screen > > > > seem like compose_button_row hook is never call ! > > i think do_hook('compose_button_row',&$temp) should be add to > ../src/compose.php > > about line 1474 (befor $oTemplate->display('compose_buttons.tpl') > > is it correct or there is another option . No, it's not correct. That code does not need to be changed. You should look for other plugins that add such buttons and are compatible with 1.5.2. Off the top of my head, Compose Extras is one. > the line at compose_buttons.tpl is > > <?php if (!empty($plugin_output1['compose_button_row'])) echo > $plugin_output['compose_button_row']; ?> > > $plugin_output1['compose_button_row']) doesn't exist .. instead there is > $plugin_output1[0]) which is empty . > > also i tried to modify it by > $oTemplate->assign('plugin_output',array(0=>$temp)) in compose.php > > but in compose_buttons.tpl it always get the old value ..meaning empty .. i > know it's php/smarty problem .. > > any help on this thing …. You need to use the template_construct_* hook and return your plugin output in an associative array with a single key named for the place where you want to insert the output. -- Paul Lesniewski SquirrelMail Team Please support Open Source Software by donating to SquirrelMail! http://squirrelmail.org/donate_paul_lesniewski.php ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ----- squirrelmail-devel mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: [email protected] List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel