From bc3d7575952b5b38f05892c8c213faa6ba32d8d9 Mon Sep 17 00:00:00 2001 From: thomasb Date: Tue, 25 May 2010 06:58:42 +0000 Subject: Add dummy group functionality to example address book plugin git-svn-id: https://svn.roundcube.net/trunk@3658 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/example_addressbook/example_addressbook.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'plugins/example_addressbook/example_addressbook.php') diff --git a/plugins/example_addressbook/example_addressbook.php b/plugins/example_addressbook/example_addressbook.php index 108c0aebb..42272c86e 100644 --- a/plugins/example_addressbook/example_addressbook.php +++ b/plugins/example_addressbook/example_addressbook.php @@ -1,5 +1,7 @@ abook_id] = array('id' => $this->abook_id, 'name' => 'Static List', 'readonly' => true); + $abook = new example_addressbook_backend; + $p['sources'][$this->abook_id] = array( + 'id' => $this->abook_id, + 'name' => 'Static List', + 'readonly' => $abook->readonly, + 'groups' => $abook->groups, + ); return $p; } public function get_address_book($p) { if ($p['id'] === $this->abook_id) { - require_once(dirname(__FILE__) . '/example_addressbook_backend.php'); $p['instance'] = new example_addressbook_backend; } -- cgit v1.2.3