Happy New Year
[squirrelmail.git] / plugins / change_password / setup.php
1 <?php
2
3 /**
4 * setup.php - Generic Change Password plugin
5 *
6 * This plugin aims to provide a general framework for all password
7 * changing methods that currently have their own plugins.
8 *
9 * @copyright 2003-2019 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @version $Id$
12 * @package plugins
13 * @subpackage change_password
14 */
15
16 /**
17 * Plugin init function
18 */
19 function squirrelmail_plugin_init_change_password() {
20 global $squirrelmail_plugin_hooks;
21
22 $squirrelmail_plugin_hooks['optpage_register_block']['change_password'] = 'change_password_optpage';
23 $squirrelmail_plugin_hooks['optpage_set_loadinfo']['change_password'] = 'change_password_loadinfo';
24 }
25
26 /**
27 * Add plugin option block
28 */
29 function change_password_optpage() {
30 global $optpage_blocks;
31
32 $optpage_blocks[] = array(
33 'name' => _("Change Password"),
34 'url' => '../plugins/change_password/options.php',
35 'desc' => _("Use this to change your email password."),
36 'js' => FALSE
37 );
38 }
39
40 /**
41 * Displays information after "Successfully Saved Options:"
42 * @since 1.5.1
43 */
44 function change_password_loadinfo() {
45 global $optpage, $optpage_name;
46 if ($optpage=='change_password') {
47 // i18n: is displayed after "Successfully Saved Options:"
48 $optpage_name=_("User's Password");
49 }
50 }
51
52 /**
53 * Return version information
54 * @return string version number
55 */
56 function change_password_version() {
57 return '0.2';
58 }