basic_settings.inc 1.64 KB
<?php

function drupalexp_basic_settings_form_alter(&$form) {
  $form['basic_settings'] = array(
      '#type' => 'fieldset',
      '#title' => 'Basic',
      '#group' => 'drupalexp_settings',
      '#weight' => 2
  );
  $form['basic_settings']['drupalexp_smoothscroll'] = array(
      '#type' => 'select',
      '#title' => t('Enable SmoothScroll'),
      '#options' => array(1 => 'Yes', 0 => 'No'),
      '#default_value' => theme_get_setting('drupalexp_smoothscroll')
  );
  $form['basic_settings']['drupalexp_layout'] = array(
      '#type' => 'select',
      '#title' => t('Layout'),
      '#options' => array('wide' => 'Wide', 'boxed' => 'Boxed'),
      '#default_value' => theme_get_setting('drupalexp_layout')
  );
  $form['basic_settings']['drupalexp_direction'] = array(
      '#type' => 'select',
      '#title' => t('Direction'),
      '#options' => array('default'=>t('Default (Current language direction)'), 'ltr' => 'LTR', 'rtl' => 'RTL'),
      '#default_value' => theme_get_setting('drupalexp_direction')
  );
  $form['basic_settings']['drupalexp_ga_analytics'] = array(
      '#type' => 'textarea',
      '#title' => t('Google Analytics Code'),
      '#description'=>t('Paste your GA code without &lt;script&gt; and &lt;/script&gt; tags'),
      '#default_value' => theme_get_setting('drupalexp_ga_analytics')
  );
  $form['basic_settings']['drupalexp_wrapper_class'] = array(
      '#type' => 'textfield',
      '#title' => t('Custom HTML class'),
      '#description'=>t('Provides this text as an additional body class (in $classes in html.tpl.php) when this section is active.'),
      '#default_value' => theme_get_setting('drupalexp_wrapper_class')
  );
}