You are here

function theme_spaces_form in Spaces 6

Same name and namespace in other branches
  1. 5.2 spaces_admin.inc \theme_spaces_form()

BASIC FORM =========================================================

File

./spaces_admin.inc, line 472

Code

function theme_spaces_form($form, $output = '') {
  if (isset($form['submit']) && $form['submit']['#type'] == 'submit' || isset($form['reset']) && $form['reset']['#type'] == 'submit') {
    $buttons = "<div class='buttons'>";
    $buttons .= isset($form['submit']) ? drupal_render($form['submit']) : '';
    $buttons .= isset($form['reset']) ? drupal_render($form['reset']) : '';
    $buttons .= "</div>";
  }
  $output .= drupal_render($form) . $buttons;
  return $output;
}