Add options block demo
[squirrelmail.git] / plugins / demo / functions.php
index 8b3ad3dd71d86021ad780f38b231238f6260184c..230df743c1f71f4579a6ff6b63c755744b45b7c7 100644 (file)
@@ -33,3 +33,27 @@ function demo_page_header_template_do()
 
 
 
+/**
+  * Inserts an option block in the main SM options page
+  *
+  */
+function demo_option_link_do()
+{
+
+   global $optpage_blocks;
+
+   sq_change_text_domain('demo');
+
+   $optpage_blocks[] = array(
+      'name' => _("Demo"),
+      'url' => sqm_baseuri() . 'plugins/demo/demo.php',
+      'desc' => _("This is where you would describe what your plugin does."),
+      'js' => FALSE
+   );
+
+   sq_change_text_domain('squirrelmail');
+
+}
+
+
+