is there any way to make a section invisible from template.php in drupal ?
Something like:
$form['name'] = array(
'#visibility' => 'hidden',
...
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
hook_form_alter is the standard way to change forms.
you can use
'#access' => FALSE, if you wish to remove the item from the page. Or'#type' => 'hidden'to create a hidden form field. Drupal will not allow dynamic manipulation of a hidden fields (or at least one which has a value initally). If you want a hidden value which can be altered by a client side script try this: