You are here

function theme_spaces_customize_item in Spaces 6

Same name and namespace in other branches
  1. 5.2 spaces_admin.inc \theme_spaces_customize_item()
  2. 6.2 spaces.theme.inc \theme_spaces_customize_item()

Form theme function for customization items.

1 theme call to theme_spaces_customize_item()
spaces_customize_form in ./spaces_admin.inc
Feature customization form.

File

./spaces_admin.inc, line 953

Code

function theme_spaces_customize_item($form) {
  $output = '';
  $rows = array();
  foreach (element_children($form) as $element) {
    if ($form[$element]['#type'] == 'fieldset') {
      $title = $form[$element]['#title'];
      unset($form[$element]['#title']);
      unset($form[$element]['#type']);
      $rows[] = array(
        "<strong>{$title}</strong>",
        drupal_render($form[$element]),
      );
    }
  }
  $output .= theme('table', array(), $rows);
  return $output;
}