Initial import from trunk/plugins
[squirrelmail.git] / plugins / test / setup.php
CommitLineData
3d708401 1<?php
2
3/**
4 * SquirrelMail Test Plugin
5 * @copyright &copy; 2006 The SquirrelMail Project Team
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
7 * @version $Id: setup.php 11080 2006-04-23 19:00:45Z tokul $
8 * @package plugins
9 * @subpackage test
10 */
11
12/**
13 * Register this plugin with SquirrelMail
14 *
15 * @return void
16 *
17 */
18function 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 */
34function 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 */
48function test_info()
49{
50
51 return array(
52 'english_name' => 'Test',
53 'summary' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.',
54 'details' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.',
55 'requires_configuration' => 0,
56 'requires_source_patch' => 0,
57 );
58
59}
60
61
62/**
63 * Returns version info about this plugin
64 *
65 */
66function test_version()
67{
68
69 $info = test_info();
70 return $info['version'];
71
72}
73
74