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