You are here

theme.inc in Spaces 7.3

Same filename in this branch
  1. 7.3 theme/theme.inc
  2. 7.3 spaces_dashboard/theme/theme.inc
  3. 7.3 spaces_ui/theme/theme.inc
Same filename and directory in other branches
  1. 7 spaces_ui/theme/theme.inc

File

spaces_ui/theme/theme.inc
View source
<?php

/**
 * Theme function for spaces_presets_list_new().
 */
function template_preprocess_spaces_preset_list_new(&$vars) {
  drupal_add_css(drupal_get_path('module', 'spaces') . '/spaces.css');
  $form =& $vars['form'];
  $row = $header = array();
  foreach (element_children($form) as $key) {
    if (isset($form[$key]['#title'])) {
      $header[] = $form[$key]['#title'];
      unset($form[$key]['#title']);
    }
    else {
      $header[] = '';
    }
    $row[]['data'] = $form[$key];
    unset($form[$key]);
  }
  $table = array(
    'header' => $header,
    'rows' => array(
      $row,
    ),
  );
  $vars['presets'] = theme('table', $table);
}

Functions

Namesort descending Description
template_preprocess_spaces_preset_list_new Theme function for spaces_presets_list_new().