getAuth(null); // return array( // 'euser' => $full_user, // 'username' => $full_user // ); // // // 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; // } /** * 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($value) // ? $value // : array($user . '@example.com', $user . '@foobar.com'); // } }