<?php
/**
* SquirrelMail Demo Plugin
*
* @copyright 2006-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: functions.php 14840 2020年01月07日 07:42:38Z pdontthink $
* @package plugins
* @subpackage demo
*/
/**
* Add link to menu at top of content pane
*
* @return void
*
*/
{
echo " \n";
}
/**
* Inserts an option block in the main SM options page
*
*/
{
global $optpage_blocks;
$optpage_blocks[] = array(
'desc' =>
_ ("This is where you would describe what your plugin does."),
'js' => FALSE
);
}
/**
* Validate that this plugin is configured correctly
*
* @return boolean Whether or not there was a
* configuration error for this plugin.
*
*/
{
// 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;
}