Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jeff00seattle on
Hi
When generating content defined by hook_form, can weighting be assigned to the default provided Save
and Preview
buttons?
I have a couple of forms whereby all the form elements are weighted as expected, but the Save
and Preview
buttons are NOT being displayed at the bottom; but interspersed within the other form elements.
Thanks
Jeff in Seattle
Comments
Found answer...
Found answer here http://drupal.org/node/373027
Within hook_form_alter(), for form in question as identified by $form_id, provide the following:
Cheers
Jeff in Seattle