what’s the hook for the Save Button in Drupal ?
I’ve tried
$form['submit']['#weight'] = -50;
But it doesn’t work.
I’m sure the template.php file works because for example:
$form['author']['#weight'] = -50;
works.
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.
The node form is built by node_form().
All of the buttons at the bottom of the form are contained in
$form['buttons'], so the information for the submit button is$form['buttons']['submit']