From: fidian Date: Fri, 13 Oct 2000 16:33:26 +0000 (+0000) Subject: Attachment hook has the filename sent. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=ef30bf506ea3b18f1f743f68984a40b3c9f1945f Attachment hook has the filename sent. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@795 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/doc/plugin.txt b/doc/plugin.txt index a316b314..60a44f5c 100644 --- a/doc/plugin.txt +++ b/doc/plugin.txt @@ -221,8 +221,9 @@ This is a breakdown of the data passed in the array to the hook that is called: [4] = Mailbox name, urlencode()'d (urlMailbox) [5] = Entity ID inside mail message (ent) [6] = Default URL to go to when filename is clicked on (Alterable) - [7] = Sent if message was found from a search (where) - [8] = Sent if message was found from a search (what) + [7] = Filename that is displayed for the attachment + [8] = Sent if message was found from a search (where) + [9] = Sent if message was found from a search (what) To set up links for actions, you assign them like this: diff --git a/functions/mime.php b/functions/mime.php index dd4d0eb0..81cf581c 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -521,7 +521,7 @@ $HookResults = do_hook("attachment $type0/$type1", $Links, $startMessage, $id, $urlMailbox, $ent, $DefaultLink, - $where, $what); + $display_filename, $where, $what); $Links = $HookResults[1]; $DefaultLink = $HookResults[6];