Changeset 4247 in subversion


Ignore:
Timestamp:
Nov 22, 2010 5:18:46 AM (3 years ago)
Author:
thomasb
Message:

Move core Kolab functions to a separate plugin to be used by others too

Location:
trunk/plugins
Files:
3 added
1 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/plugins/kolab_addressbook/kolab_addressbook.php

    r4244 r4247  
    77 *  
    88 * Sample plugin to add a new address book source with data from Kolab storage 
    9  * 
    109 * This is work-in-progress for the Roundcube+Kolab integration. 
    11  * The library part is to be moved into a separate PEAR package or plugin 
    12  * that this and other Kolab-related plugins will depend on. 
    1310 * 
    1411 * @author Thomas Bruederli <roundcube@gmail.com> 
     
    2522    public function init() 
    2623    { 
    27         // load local config 
    28         $this->load_config(); 
     24        // load required plugin 
     25        $this->require_plugin('kolab_core'); 
    2926         
     27        // register hooks 
    3028        $this->add_hook('addressbooks_list', array($this, 'address_sources')); 
    3129        $this->add_hook('addressbook_get', array($this, 'get_address_book')); 
    3230        $this->add_hook('contact_form', array($this, 'contact_form')); 
    33  
    34         // extend include path to load bundled Horde classes 
    35         $include_path = $this->home . '/lib' . PATH_SEPARATOR . ini_get('include_path'); 
    36         set_include_path($include_path); 
    37  
     31         
    3832        // extend list of address sources to be used for autocompletion 
    3933        $rcmail = rcmail::get_instance(); 
Note: See TracChangeset for help on using the changeset viewer.