You are here

function theme_spaces_features_form in Spaces 6.3

Same name and namespace in other branches
  1. 5.2 spaces_admin.inc \theme_spaces_features_form()
  2. 5 spaces_admin.inc \theme_spaces_features_form()
  3. 6 spaces_admin.inc \theme_spaces_features_form()
  4. 6.2 spaces.theme.inc \theme_spaces_features_form()

Theme function for spaces_features_form().

File

./spaces.theme.inc, line 6

Code

function theme_spaces_features_form($form) {
  drupal_add_css(drupal_get_path('module', 'spaces') . '/spaces.css');
  $rows = array();
  foreach (element_children($form['spaces_features']) as $feature) {
    $rows[] = array(
      array(
        'class' => 'label',
        'data' => drupal_render($form['labels'][$feature]),
      ),
      array(
        'class' => 'option',
        'data' => drupal_render($form['spaces_features'][$feature]),
      ),
      array(
        'class' => 'actions',
        'data' => drupal_render($form['settings'][$feature]),
      ),
    );
  }
  $output = theme('table', array(), $rows, array(
    'class' => 'spaces',
  ));
  $output .= drupal_render($form);
  return $output;
}