From cf46aefd9d8be57722514ab0b6047fa573f46a36 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Sat, 28 Sep 2013 06:04:35 -0400
Subject: [PATCH] Make password plugin use the new 'settings_actions' hook to register its link in the settings navigation
---
plugins/password/password.php | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/plugins/password/password.php b/plugins/password/password.php
index f1a3e17..e31613a 100644
--- a/plugins/password/password.php
+++ b/plugins/password/password.php
@@ -69,13 +69,19 @@
}
}
- // add Tab label
- $rcmail->output->add_label('password');
+ $this->add_hook('settings_actions', array($this, 'settings_actions'));
$this->register_action('plugin.password', array($this, 'password_init'));
$this->register_action('plugin.password-save', array($this, 'password_save'));
$this->include_script('password.js');
}
+ function settings_actions($args)
+ {
+ // register as settings action
+ $args['actions'][] = array('action' => 'plugin.password', 'class' => 'password', 'label' => 'password', 'domain' => 'password');
+ return $args;
+ }
+
function password_init()
{
$this->add_texts('localization/');
--
Gitblit v1.9.1