summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-09-11 12:45:34 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-09-11 12:45:34 (GMT)
commitc3151bea8aaea994ba4cb98a95ee15eb64194ed5 (patch)
tree7ec7afecbbce8ac4d06d4221badc7fc37a5dab61
parent109044c87ba861cd068e9ec70f355716bf10e0d9 (diff)
downloadroundcubemail-plugins-kolab-c3151bea8aaea994ba4cb98a95ee15eb64194ed5.tar.gz
Add book-remove item to address book actions menu
-rw-r--r--plugins/kolab_addressbook/kolab_addressbook.php1
-rw-r--r--plugins/kolab_addressbook/lib/kolab_addressbook_ui.php2
-rw-r--r--plugins/kolab_addressbook/localization/en_US.inc1
3 files changed, 3 insertions, 1 deletions
diff --git a/plugins/kolab_addressbook/kolab_addressbook.php b/plugins/kolab_addressbook/kolab_addressbook.php
index 418eca3..421125b 100644
--- a/plugins/kolab_addressbook/kolab_addressbook.php
+++ b/plugins/kolab_addressbook/kolab_addressbook.php
@@ -164,6 +164,7 @@ class kolab_addressbook extends rcube_plugin
'group' => $abook->get_namespace(),
'subscribed' => $abook->is_subscribed(),
'carddavurl' => $abook->get_carddav_url(),
+ 'removable' => true,
'kolab' => true,
);
}
diff --git a/plugins/kolab_addressbook/lib/kolab_addressbook_ui.php b/plugins/kolab_addressbook/lib/kolab_addressbook_ui.php
index 10d49f6..e8f7c03 100644
--- a/plugins/kolab_addressbook/lib/kolab_addressbook_ui.php
+++ b/plugins/kolab_addressbook/lib/kolab_addressbook_ui.php
@@ -60,7 +60,7 @@ class kolab_addressbook_ui
}
// Add actions on address books
- $options = array('book-create', 'book-edit', 'book-delete');
+ $options = array('book-create', 'book-edit', 'book-delete', 'book-remove');
$idx = 0;
if ($this->rc->config->get('kolab_addressbook_carddav_url')) {
diff --git a/plugins/kolab_addressbook/localization/en_US.inc b/plugins/kolab_addressbook/localization/en_US.inc
index ed9e367..b636d4d 100644
--- a/plugins/kolab_addressbook/localization/en_US.inc
+++ b/plugins/kolab_addressbook/localization/en_US.inc
@@ -30,6 +30,7 @@ $labels['settings'] = 'Settings';
$labels['bookcreate'] = 'Create address book';
$labels['bookedit'] = 'Edit address book';
$labels['bookdelete'] = 'Delete address book';
+$labels['bookremove'] = 'Remove from list';
$labels['bookproperties'] = 'Address book properties';
$labels['bookname'] = 'Book name';
$labels['parentbook'] = 'Superior book';