Re: [Lam-public] Required fields
Brought to you by:
gruberroland
|
From: Roland G. <po...@ro...> - 2009-10-07 17:47:54
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Jonas,
Jonas Bygdén schrieb:
> I'm trying to make the email address be a required field in
> inetOrgPerson, but it seems impossible. I was hoping that I could make
> the field required from the profile editor. No luck though.
>
> After looking at every possible page, I resign and start looking at the
> code instead.
>
> Looking at lib/modules/inetOrgPerson.inc I see this for "Last name" (sn)
> which is required:
> array(
> 'name' => 'inetOrgPerson_lastName',
> 'description' => _('Last name'),
> 'help' => 'sn',
> 'example' => _('Miller'),
> 'required' => true
> ),
you modified the code of the file upload. If you want to change the
account page then take a look at process_attributes().
You can try to subclass your own module from inetOrgPerson and overwrite
this function.
- --
Best regards
Roland Gruber
LDAP Account Manager
http://www.ldap-account-manager.org/
Want more? Get LDAP Account Manager Pro!
http://www.ldap-account-manager.org/lamcms/lamPro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkrM1D8ACgkQq/ywNCsrGZ6VhQCeO3YC3AKZTmxFljVG1hRph4Ih
nCYAn3rQee0vDJ+Yz51FldRFdQ1tYsmJ
=IzKy
-----END PGP SIGNATURE-----
|