From d0201d6312b513e03d86c8fee13f29af27f4088b Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 15 Mar 2005 09:25:55 +0000 Subject: [PATCH] Info about new hook attribute git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9038 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- doc/plugin.txt | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.25.1