X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fdemo%2Ffunctions.php;h=d0a5558e87fc2463d768728ca325756a9c3eb5da;hp=230df743c1f71f4579a6ff6b63c755744b45b7c7;hb=ccb5faf0a2fbf6dc7927234a0dddeddc4217d230;hpb=e04de0b9d163343c246f327b27edbd307a9a1029 diff --git a/plugins/demo/functions.php b/plugins/demo/functions.php index 230df743..d0a5558e 100644 --- a/plugins/demo/functions.php +++ b/plugins/demo/functions.php @@ -20,10 +20,9 @@ */ function demo_page_header_template_do() { - global $oTemplate; + global $oTemplate, $nbsp; sq_change_text_domain('demo'); - $nbsp = $oTemplate->fetch('non_breaking_space.tpl'); $output = makeInternalLink('plugins/demo/demo.php', _("Demo"), '') . $nbsp . $nbsp; sq_change_text_domain('squirrelmail'); @@ -57,3 +56,28 @@ function demo_option_link_do() +/** + * Validate that this plugin is configured correctly + * + * @return boolean Whether or not there was a + * configuration error for this plugin. + * + */ +function demo_check_configuration_do() +{ + + // test for something that this plugin requires, print error if + // misconfigured or requirements are missing + // + if (FALSE) // put something meaningful here + { + do_err('Demo plugin is missing something important', FALSE); + return TRUE; // return FALSE if you only want to display a non-critical error + } + + return FALSE; + +} + + +