From: Michael M Slusarz Date: Thu, 4 Jun 2009 18:49:10 +0000 (-0600) Subject: IMP 5 requires Horde 4 apps - no need for workarounds X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d67f5e6a13db2a7206522418c80f7d5b03e68608;p=horde.git IMP 5 requires Horde 4 apps - no need for workarounds --- diff --git a/imp/config/hooks.php.dist b/imp/config/hooks.php.dist index 798fc7577..6fcd495c5 100644 --- a/imp/config/hooks.php.dist +++ b/imp/config/hooks.php.dist @@ -32,26 +32,13 @@ // } // Example hook to set the value of the add_source pref. Useful when using -// a turba source with shares enabled (i.e. the example localsql configuration) -// This requires Horde >= 3.3.5 to work correctly. -//if (!function_exists('_prefs_hook_add_source')) { -// function _prefs_hook_add_source($username = null) { -// -// /** If you have Turba >= 2.3.2 you can simply do this: **/ -// // return $GLOBALS['registry']->call('contacts/getDefaultShare'); -// -// /** Otherwise, need to be a bit more hackish **/ -// $shares = &Horde_Share::singleton('turba'); -// $sources = $shares->listShares( -// Auth::getAuth(), PERMS_EDIT, Auth::getAuth()); -// foreach ($sources as $uid => $share) { -// $params = @unserialize($share->get('params')); -// if ($params['default']) { -// return $uid; -// } -// } -// } -//} +// a Turba source with shares enabled (i.e. the example localsql +// configuration). +// if (!function_exists('_prefs_hook_add_source')) { +// function _prefs_hook_add_source($username = null) { +// return $GLOBALS['registry']->call('contacts/getDefaultShare'); +// } +// } // Here is an example _imp_hook_postlogin function to redirect to a // custom server after login.