You are here

function gallery_assist_austoben in Gallery Assist 7

1 string reference to 'gallery_assist_austoben'
gallery_assist_menu in ./gallery_assist.module
Implements hook_menu().

File

./gallery_assist.austoben.inc, line 9

Code

function gallery_assist_austoben() {
  $form = array();
  $form['cero'] = array(
    '#type' => 'fieldset',
    '#title' => "My cero Set",
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#tree' => TRUE,
    '#weight' => -50,
  );
  $form['cero'] += gallery_assist_austoben_uno('cero');
  $form['ga_assignments_settings'] = array(
    '#type' => 'vertical_tabs',
  );
  foreach (array(
    'Fisrt',
    'Second',
    'Thirth',
  ) as $k) {
    $form[strtolower($k)] = array(
      '#type' => 'fieldset',
      '#title' => "My {$k} Set",
      '#collapsible' => TRUE,
      '#collapsed' => TRUE,
      '#group' => 'ga_assignments_settings',
      '#tree' => TRUE,
    );
    $form[strtolower($k)] += gallery_assist_austoben_uno(strtolower($k));
  }
  $form['supertest'] = array(
    '#type' => 'vertical_tabs',
  );
  $form['ultimo'] = array(
    '#type' => 'fieldset',
    '#title' => 'My Vertical Set I',
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#group' => 'supertest',
    '#tree' => TRUE,
  );
  $form['ultimo']['uno'] = array(
    '#type' => 'textfield',
    '#title' => 'Uno title',
  );
  $form['ultimo']['dos'] = array(
    '#type' => 'textfield',
    '#title' => 'Dos title',
  );
  $form['settingformset'] = array(
    '#type' => 'fieldset',
    '#title' => 'My Vertical Set II',
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#description' => t('Set different settings which will effect site wide.'),
    '#group' => 'supertest',
    '#tree' => TRUE,
  );

  // Replicating the above textarea, this is just for demo.
  $form['settingformset']['tres'] = array(
    '#type' => 'textfield',
    '#title' => 'Tres title',
  );
  $form['settingformset']['cuatro'] = array(
    '#type' => 'textfield',
    '#title' => 'Cuatro title',
  );
  return $form;
}