summaryrefslogtreecommitdiff
path: root/plugins/managesieve/managesieve.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-01-04 11:18:52 +0100
committerAleksander Machniak <alec@alec.pl>2014-01-04 11:18:52 +0100
commit4e040e304f330c454a062a6cc30e0852daf381aa (patch)
treec6b88f6a447c0ddb110a6e32053df4c6e3c381de /plugins/managesieve/managesieve.php
parent172302e2cf2c08ac02eca57e4147b30f7bf67d7d (diff)
Add Filters tab using plugin API hook
Diffstat (limited to 'plugins/managesieve/managesieve.php')
-rw-r--r--plugins/managesieve/managesieve.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php
index 46c4e2e5b..7a7faee4c 100644
--- a/plugins/managesieve/managesieve.php
+++ b/plugins/managesieve/managesieve.php
@@ -45,6 +45,7 @@ class managesieve extends rcube_plugin
$this->register_action('plugin.managesieve-save', array($this, 'managesieve_save'));
if ($this->rc->task == 'settings') {
+ $this->add_hook('settings_actions', array($this, 'settings_actions'));
$this->init_ui();
}
else if ($this->rc->task == 'mail') {
@@ -75,6 +76,16 @@ class managesieve extends rcube_plugin
}
/**
+ * Adds Filters section in Settings
+ */
+ function settings_actions($args)
+ {
+ // register as settings action
+ $args['actions'][] = array('action' => 'plugin.managesieve', 'class' => 'filter', 'label' => 'filters', 'domain' => 'managesieve');
+ return $args;
+ }
+
+ /**
* Add UI elements to the 'mailbox view' and 'show message' UI.
*/
function mail_task_handler()