[horde] composite driver example?

Vilius Sumskas vilius at lnk.lt
Tue May 18 08:58:28 PDT 2004


Cituojama Chuck Hagenbuch <chuck at horde.org>:

> Quoting Vilius Sumskas <vilius at lnk.lt>:
>
>> Ok. This time I have a simple one:
>
> Yup, this one I can follow. ;)
>
>> $conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
>>
>> if (!function_exists('_horde_select_loginscreen')) {
>>     function _horde_select_loginscreen() {
>>        return 'imp';
>>     }
>> }
>
> Here you use 'imp'.
>
>> $conf['auth']['driver'] = 'composite';
>> $conf['auth']['params']['drivers']['email']['driver'] = 'application';
>> $conf['auth']['params']['drivers']['email']['params'] = array('app' 
>> => 'imp');
>
> But here you use 'email' for the driver name. Those need to match.


Oh, now I understand. You define drivers, then some user made function must
decide which driver to use. They must match by driver name not driver type.
Thanks, now it works :).

--
    Best Regards,

    Vilius





More information about the horde mailing list