\n"; // Admin form fields and submit buttons must be rendered first, because // they need to go to the bottom of the form, and so should not be part of // the catch-all call to drupal_render(). $admin = ''; if (isset($form['author'])) { $admin .= "
\n"; $admin .= drupal_render($form['author']); $admin .= "
\n"; } if (isset($form['options'])) { $admin .= "
\n"; $admin .= drupal_render($form['options']); $admin .= "
\n"; } $buttons = drupal_render($form['buttons']); // Everything else gets rendered here, and is displayed before the admin form // field and the submit buttons. $output .= "
\n"; $output .= drupal_render($form); $output .= "
\n"; if (!empty($admin)) { $output .= "
\n"; $output .= $admin.$advance; $output .= "
\n"; } $output .= $buttons; $output .= "\n"; print $output;