开发者

In Drupal, how do you get the submit button to appear last on a create content form?

开发者 https://www.devze.com 2023-01-07 19:04 出处:网络
In Drupal, how do you get the submit button to appear last on a create content form without making the entire form from scratch? I can set the weight of the submit button using code, but it never goes

In Drupal, how do you get the submit button to appear last on a create content form without making the entire form from scratch? I can set the weight of the submit button using code, but it never goes below any 开发者_C百科custom fields I've created. If I drag a lot of custom fields from the bottom of the form to the top, the submit button only stays below about 5 of the fields and then all the other fields get stacked below it. It feels like the submit button is simply stuck in one position on the screen. How do I fix that?


In a hook_form_alter():

$form['submitbuttonid']['#weight'] = 100;

But it seems like something is getting in the way. Typically in Drupal the Submit is always last unless something funny is going on.


Okay, I had just upgraded to the latest version of views and cck. I reverted back to the versions just before that and now the submit button has returned to the bottom of the form. (And a few other niggling errors I never used to have went away)

0

精彩评论

暂无评论...
验证码 换一张
取 消