You are here

function delta_layouts_list in Delta 7.2

Menu callback; displays the delta listing page.

1 string reference to 'delta_layouts_list'
delta_layouts_view in ./delta_ui.admin.inc
Menu callback;

File

./delta_ui.admin.inc, line 60
Delta UI functionality

Code

function delta_layouts_list($form, &$form_state) {
  $form = array();
  $form['delta'] = array(
    '#type' => 'vertical_tabs',
    '#weight' => 10,
  );
  $themes = delta_get_themes_array();
  foreach ($themes as $info) {

    // create fieldset for each theme we have the ability to manipulate
    $form['delta'][$info->name] = array(
      '#type' => 'fieldset',
      '#title' => t($info->info['name']),
    );

    // build the data for each theme, and it's theme settings templates
    $form['delta'][$info->name]['content'] = delta_get_layouts($info->name);
  }
  return $form;
}