By letsdothis on
So I'm located in my theme_preprocess_contact_mail_page( &$var )
I am fooling around with the form elements before they get rendered. I was looking at the #weight property which will order the form elements from low -> high
I set one of my elements to -1000 in order to make it be the first on the list in the form. (ie: $var['form']['cid']['#weight'] = -1000;)
dumping the var shows that the change has been made yet, when i view the page with this form, the field (which is a 'select') has not moved at all.
Ive cleared cache, and still no result.
Any ideas?
Thanks
Comments
I suspect you want to
I suspect you want to implement hook_form_alter() in a module.
Changing other attributes is
Changing other attributes is working fine though...