From b0d8a8e9f535da27f8ec09df164fea3cf1a96480 Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 30 Jul 2010 06:34:16 +0000 Subject: - Unify hooks names, see rcube_plugin_api::deprecated_hooks for complete list (old names are supported without errors nor warnings) git-svn-id: https://svn.roundcube.net/trunk@3841 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/example_addressbook/example_addressbook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/example_addressbook') diff --git a/plugins/example_addressbook/example_addressbook.php b/plugins/example_addressbook/example_addressbook.php index 42272c86e..c50f8d8ce 100644 --- a/plugins/example_addressbook/example_addressbook.php +++ b/plugins/example_addressbook/example_addressbook.php @@ -12,8 +12,8 @@ class example_addressbook extends rcube_plugin public function init() { - $this->add_hook('address_sources', array($this, 'address_sources')); - $this->add_hook('get_address_book', array($this, 'get_address_book')); + $this->add_hook('addressbooks_list', array($this, 'address_sources')); + $this->add_hook('addressbook_get', array($this, 'get_address_book')); // use this address book for autocompletion queries // (maybe this should be configurable by the user?) -- cgit v1.2.3