Drupal questions - customizing form_altered modules

Posted by bert on Stack Overflow See other posts from Stack Overflow or by bert
Published on 2010-04-17T23:07:59Z Indexed on 2010/04/17 23:13 UTC
Read the original article Hit count: 183

Filed under:
|
|
|
|

This week I have figured out how to modify form elements in the location module using form_alter and the custom element hook_elements() see: see http://stackoverflow.com/questions/2637052/need-some-tips-on-drupal-form-value

I was able to to hide elements using unset eg: unset($element['locpick']['user_latitude']); Also added css with drupal_add_css to hide unwanted groups, and change margins, borders & padding

However, I have a few questions - how can I add additional text header between fields? - how can I change input field length? - is it possible to move fields around or put them in a table?

reference: http://tinyurl.com/y6ugwtd

© Stack Overflow or respective owner

Related posts about drupal

Related posts about form