$GLOBALS['registry']->getAuth(null) // ); // // Django : 2014-09-12 // default: // // Example #2: Use IMP password/username. // // $ob = $GLOBALS['registry']->call('mail/imapOb'); // // return array( // // 'password' => $ob->getParam('password'), // // 'username' => $ob->getParam('username') // // ); // // } // Example #2: Use IMP password/username. $ob = $GLOBALS['registry']->call('mail/imapOb'); return array( 'password' => $ob->getParam('password'), 'username' => $ob->getParam('username') ); } // // // DEFAULT: Use hordeauth (identical to not defining hook at all). // return true; // Django : 2014-09-12 // default: // } } /** * Set the default addresses used for the vacation module. * * @param string $user The username. * @param array $value The default/current value. * * @return array A list of vacation addresses. */ // public function vacation_addresses($user = null, $value = null) // { // // Example #1: User has 2 vacation addresses. // return array($user . '@example.com', $user . '@foobar.com'); // // // Example #2: Keep user-supplied values, return defaults only // return is_array($value) && count($array) // ? $value // : array($user . '@example.com', $user . '@foobar.com'); // } }