[support] Displaying node form buttons at top and bottom
Michael Prasuhn
mike at mikeyp.net
Mon Jul 20 06:07:31 UTC 2009
Uhm, you could just do something like this:
<?php
$buttons = drupal_render($form['buttons'];
print $buttons;
print drupal_render($form);
print $buttons;
?>
On Jul 17, 2009, at 1:31 PM, Steve Edwards wrote:
> On the node edit form for a CCK type, the client wants to have the
> Save/Preview/Delete buttons both at the top and bottom of the form.
> I created a template file and added an entry in hook_theme() to use
> it, and it works fine. I then added "print
> drupal_render_form('article-edit',$form['buttons']);" and then print
> drupal_render_form('article-edit',$form); , and then moves the
> button to the top and then renders the rest of the form. The
> question is, how do I get the buttons to display again at the
> bottom? If I put in another "print drupal_render_form('article-
> edit',$form['buttons']);", they aren't displayed. I really don't
> want to have to enter each element individually just to get the
> buttons at the bottom if I don't have to.
>
> Thanks.
>
> Steve
> --
> [ Drupal support list | http://lists.drupal.org/ ]
__________________
Michael Prasuhn
503.488.5433 office
503.539.3864 cell
503.661.7574 home
mike at mikeyp.net
http://mikeyp.net
More information about the support
mailing list