Tarjei Huse wrote:
> Hi, I'm wondering about a few things regarding the phpldapadmin template
> system.
> 
> Is it possible to create a picklist from something else than the normal
> ldap search using the hooks system?
> 
> If so, what is the correct function signature? Can someone give me an
> example? I've tried placing a file in hooks/functions/Test.php with a
> function named Test() and then placed
> 
> <options>php.Test()</options>
> in the template, but this does not give me what I want.

Solved!

What you need to do is:
<options>php.Function(functionName)</options>

Note: The functionname should _not_ be between "", just the bare string.

Then in hooks/functions/functionName.php you should have a function that
returns an array.

Kind regards,
Tarjei

> 
> Some hints would be great.
> Kind regards,
> Tarjei
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> phpldapadmin-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/phpldapadmin-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
phpldapadmin-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpldapadmin-users

Reply via email to