f42feac98f1beca7f0a554f519eb318df1fceb5b
5 * SquirrelMail Demo Plugin
7 * @copyright 2006-2016 The SquirrelMail Project Team
8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
16 * Add link to menu at top of content pane
21 function demo_page_header_template_do()
23 global $oTemplate, $nbsp;
25 sq_change_text_domain('demo');
26 $output = makeInternalLink('plugins/demo/demo.php', _("Demo"), '')
28 sq_change_text_domain('squirrelmail');
30 return array('menuline' => $output);
36 * Inserts an option block in the main SM options page
39 function demo_option_link_do()
42 global $optpage_blocks;
44 sq_change_text_domain('demo');
46 $optpage_blocks[] = array(
48 'url' => sqm_baseuri() . 'plugins/demo/demo.php',
49 'desc' => _("This is where you would describe what your plugin does."),
53 sq_change_text_domain('squirrelmail');
60 * Validate that this plugin is configured correctly
62 * @return boolean Whether or not there was a
63 * configuration error for this plugin.
66 function demo_check_configuration_do()
69 // test for something that this plugin requires, print error if
70 // misconfigured or requirements are missing
72 if (FALSE) // put something meaningful here
74 do_err('Demo plugin is missing something important', FALSE);
75 return TRUE; // return FALSE if you only want to display a non-critical error