[ingo] hooks: return true; ?

trash at skrilnetz.net trash at skrilnetz.net
Wed Apr 22 12:18:15 UTC 2015


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
  );
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?
>
> -- 
> 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


-------------- 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/26a5c5eb/attachment.bin>


More information about the ingo mailing list