Initial import from trunk/plugins
[squirrelmail.git] / plugins / test / setup.php
diff --git a/plugins/test/setup.php b/plugins/test/setup.php
new file mode 100644 (file)
index 0000000..81646c6
--- /dev/null
@@ -0,0 +1,74 @@
+<?php
+
+/**
+  * SquirrelMail Test Plugin
+  * @copyright &copy; 2006 The SquirrelMail Project Team
+  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+  * @version $Id: setup.php 11080 2006-04-23 19:00:45Z tokul $
+  * @package plugins
+  * @subpackage test
+  */
+
+/**
+  * Register this plugin with SquirrelMail
+  * 
+  * @return void
+  *
+  */
+function squirrelmail_plugin_init_test() {
+
+    global $squirrelmail_plugin_hooks;
+
+    $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['test'] 
+        = 'test_menuline';
+
+}
+
+
+/**
+  * Add link to menu at top of content pane
+  *
+  * @return void
+  *
+  */
+function test_menuline() {
+
+    include_once(SM_PATH . 'plugins/test/functions.php');
+    return test_menuline_do();
+
+}
+
+
+/**
+  * Returns info about this plugin
+  *
+  * @return array An array of plugin information.
+  *
+  */
+function test_info()
+{
+
+   return array(
+             'english_name' => 'Test',
+             'summary' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.',
+             'details' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.',
+             'requires_configuration' => 0,
+             'requires_source_patch' => 0,
+          );
+
+}
+
+
+/**
+  * Returns version info about this plugin
+  *
+  */
+function test_version()
+{
+
+   $info = test_info();
+   return $info['version'];
+
+}
+
+