1<?php
2/**
3 * Mnemo Hooks configuration file.
4 *
5 * THE HOOKS PROVIDED IN THIS FILE ARE EXAMPLES ONLY.  DO NOT ENABLE THEM
6 * BLINDLY IF YOU DO NOT KNOW WHAT YOU ARE DOING.  YOU HAVE TO CUSTOMIZE THEM
7 * TO MATCH YOUR SPECIFIC NEEDS AND SYSTEM ENVIRONMENT.
8 *
9 * For more information please see the horde/config/hooks.php.dist file.
10 *
11 * $Id: 52de75588995e2760427bb463fd0aab323ae2991 $
12 */
13
14class Mnemo_Hooks
15{
16    /**
17     * TODO
18     */
19//    public function format_description($text)
20//    {
21//        $text = preg_replace('/#(\d+)/', '<a href="http://bugs.horde.org/ticket/\1">\0</a>', $text);
22//        $text = preg_replace('/(bug|ticket|request|enhancement|issue):\s*#?(\d+)/i', '<a href="http://bugs.horde.org/ticket/\1">\0</a>', $text);
23//
24//        $text = preg_replace_callback('/\[\[note: ?(.*)\]\]/i', create_function('$m', 'return \'<a href="/horde/mnemo/notes/?q=\' . urlencode($m[1]) . \'">\' . htmlspecialchars($m[0]) . \'</a>\';'), $text);
25//        $text = preg_replace_callback('/\[\[task: ?(.*)\]\]/i', create_function('$m', 'return \'<a href="/horde/nag/tasks/?q=\' . urlencode($m[1]) . \'">\' . htmlspecialchars($m[0]) . \'</a>\';'), $text);
26//
27//        return $text;
28//    }
29
30
31    /**
32     * TODO
33     */
34//    public function description_help()
35//    {
36//        return '<p>To create a link to a bug, use #123 where 123 is the bug number. To create a link to another task, use [[task: name]], where name is the beginning of the task name. To create a link to a note, use [[note: title]] where title is the beginning of the note title.</p>';
37//    }
38
39}
40