\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"; } if (isset($form['options'])) { $admin .= " \n"; } $buttons = drupal_render($form['buttons']); $advance = drupal_render($form['menu']); $advance .= drupal_render($form['revision_information']); $advance .= drupal_render($form['comment_settings']); // Everything else gets rendered here, and is displayed before the admin form // field and the submit buttons. $output .= "