From: pdontthink Date: Tue, 15 Mar 2005 09:25:55 +0000 (+0000) Subject: Info about new hook attribute X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d0201d6312b513e03d86c8fee13f29af27f4088b;p=squirrelmail.git Info about new hook attribute git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9038 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/doc/plugin.txt b/doc/plugin.txt index ebfd5eae..cb2ccffd 100644 --- a/doc/plugin.txt +++ b/doc/plugin.txt @@ -474,10 +474,15 @@ To set up links for actions, you assign them like this: $Args[1]['']['href'] = 'URL to link to'; $Args[1]['']['text'] = _("What to display"); + $Args[1]['']['extra'] = 'extra stuff, such as an tag'; Note: _("What to display") is explained in the section about internationalization. +You can leave the 'text' empty and put an image tag in 'extra' to show an +image-only link for the attachment, or do the opposite (leave 'extra' empty) +to display a text-only link. + It's also possible to specify a hook as "attachment type0/*", for example "attachment text/*". This hook will be executed whenever there's no more specific rule available for that type.