5 * SquirrelMail Demo Plugin
7 * @copyright © 2006-2007 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()
25 sq_change_text_domain('demo');
26 $nbsp = $oTemplate->fetch('non_breaking_space.tpl');
27 $output = makeInternalLink('plugins/demo/demo.php', _("Demo"), '')
29 sq_change_text_domain('squirrelmail');
31 return array('menuline' => $output);
37 * Inserts an option block in the main SM options page
40 function demo_option_link_do()
43 global $optpage_blocks;
45 sq_change_text_domain('demo');
47 $optpage_blocks[] = array(
49 'url' => sqm_baseuri() . 'plugins/demo/demo.php',
50 'desc' => _("This is where you would describe what your plugin does."),
54 sq_change_text_domain('squirrelmail');
61 * Validate that this plugin is configured correctly
63 * @return boolean Whether or not there was a
64 * configuration error for this plugin.
67 function demo_check_configuration_do()
70 // test for something that this plugin requires, print error if
71 // misconfigured or requirements are missing
73 if (FALSE) // put something meaningful here
75 do_err('Demo plugin is missing something important', FALSE);
76 return TRUE; // return FALSE if you only want to display a non-critical error