3d708401 |
1 | <?php |
2 | |
3 | /** |
4 | * SquirrelMail Test Plugin |
22387c8d |
5 | * @copyright 2006-2017 The SquirrelMail Project Team |
3d708401 |
6 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
3656ccef |
7 | * @version $Id$ |
3d708401 |
8 | * @package plugins |
9 | * @subpackage test |
10 | */ |
11 | |
12 | /** |
13 | * Register this plugin with SquirrelMail |
14 | * |
15 | * @return void |
16 | * |
17 | */ |
18 | function squirrelmail_plugin_init_test() { |
19 | |
20 | global $squirrelmail_plugin_hooks; |
21 | |
22 | $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['test'] |
23 | = 'test_menuline'; |
24 | |
25 | } |
26 | |
27 | |
28 | /** |
29 | * Add link to menu at top of content pane |
30 | * |
31 | * @return void |
32 | * |
33 | */ |
34 | function test_menuline() { |
35 | |
36 | include_once(SM_PATH . 'plugins/test/functions.php'); |
37 | return test_menuline_do(); |
38 | |
39 | } |
40 | |
41 | |
42 | /** |
43 | * Returns info about this plugin |
44 | * |
45 | * @return array An array of plugin information. |
46 | * |
47 | */ |
48 | function test_info() |
49 | { |
50 | |
51 | return array( |
52 | 'english_name' => 'Test', |
af8d2b60 |
53 | 'version' => 'CORE', |
3d708401 |
54 | 'summary' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.', |
55 | 'details' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.', |
56 | 'requires_configuration' => 0, |
57 | 'requires_source_patch' => 0, |
58 | ); |
59 | |
60 | } |
61 | |
62 | |
63 | /** |
64 | * Returns version info about this plugin |
65 | * |
66 | */ |
67 | function test_version() |
68 | { |
69 | |
70 | $info = test_info(); |
71 | return $info['version']; |
72 | |
73 | } |
74 | |
75 | |