[ingo] hooks: return true; ?

trash at skrilnetz.net trash at skrilnetz.net
Wed Apr 22 16:55:37 UTC 2015


Quoting Jan Schneider <jan at horde.org>:

> Please don't top-post.
>
> Zitat von trash at skrilnetz.net:
>
>> Quoting Jan Schneider <jan at horde.org>:
>>
>>> Zitat von trash at skrilnetz.net:
>>>
>>>> Hi,
>>>>
>>>> I have Ingo up and running but I was wondering what the 'return  
>>>> true' is for?
>>>> Could someone please advice?
>>>>
>>>>
>>>> // DEFAULT: Use hordeauth (identical to not defining hook at all).
>>>> //        return true;
>>>>
>>>> Thanks,
>>>
>>> Which hook are you talking about?
>>>
>> The default hook file (hook.php.dist) in the ingo/config directory.
>>
>>  public function transport_auth($driver)
>> {
>> switch ($driver) {
>> case 'foo':
>> // Example #1: Use full Horde username for password.
>> // This is generally needed for sieve servers.
>> $full_user = $GLOBALS['registry']->getAuth(null);
>> return array(
>> 'euser' => $full_user,
>> 'username' => $full_user
>> );
>
> There is no "return true" anywhere in this code. Anyway, each hooks  
> has an individual signature, and all parameters and return values  
> are documented with the hook functions.
>
> -- 
> Jan Schneider
> The Horde Project
> http://www.horde.org/
> https://www.facebook.com/hordeproject
>
> -- 
> ingo mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org

Well, there is. In the default ingo /ingo/config/hooks.php.dist file:
http://pastebin.com/sEmvVvGX


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1718 bytes
Desc: PGP Public Key
URL: <http://lists.horde.org/archives/ingo/attachments/20150422/3122fff1/attachment.bin>


More information about the ingo mailing list