[drupal-devel] Rewriting use of forms in Drupal

Adrian Rossouw adrian at bryght.com
Fri Jun 3 12:14:55 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This brings it to a similar format as the menus.

Perhaps we should build it so that you set up the element array, and  
then you have a form_element($elements['key']); function, which allows
you to place it anywhere on the screen.

So you would have a form('module_formname', $elements);

function theme_form_module_formname($elements) {
     /* place the form elements how you want them using form_element 
($elements['id'])*/
}

You could also do it in a phptemplate format, so you could distribute  
customized forms.




On 03 Jun 2005, at 1:49 PM, Robert Douglass wrote:

> +1 on the direction. Seems like it would also make things like auto- 
> generating and hiding titles easier.
>
> Robert
>

- --
Adrian Rossouw
Drupal developer and Bryght Guy
http://drupal.org | http://bryght.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCoEocgegMqdGlkasRAmTzAJ9kcto0c8Dfpgf8+h/WDf2fVzBcRACg4YXB
x76OBFtMr8yiUl5GPt1Euos=
=qraM
-----END PGP SIGNATURE-----



More information about the drupal-devel mailing list