You are here

function pace_admin_settings_form in PACE - Page load progress bar 7

@file Provide administration of PACE module.

1 string reference to 'pace_admin_settings_form'
pace_menu in ./pace.module
Implements hook_menu().

File

./pace.admin.inc, line 8
Provide administration of PACE module.

Code

function pace_admin_settings_form() {
  $form = array();
  $form['pace_theme'] = array(
    '#title' => t('Select the theme that PACE should use'),
    '#description' => t('Pace comes with a lot of themes for the progress loader. Please select the one that you prefer. You can see them all here: http://github.hubspot.com/pace/docs/welcome/'),
    '#type' => 'radios',
    '#options' => array(
      'pace-theme-minimal.css' => 'minimal',
      'pace-theme-barber-shop.css' => 'barber',
      'pace-theme-big-counter.css' => 'big counter',
      'pace-theme-bounce.css' => 'bounce',
      'pace-theme-center-atom.css' => 'center atom',
      'pace-theme-center-circle.css' => 'center circle',
      'pace-theme-center-radar.css' => 'center radar',
      'pace-theme-center-simple.css' => 'center simple',
      'pace-theme-corner-indicator.css' => 'corner indicator',
      'pace-theme-fill-left.css' => 'fill left',
      'pace-theme-flash.css' => 'flash',
      'pace-theme-flat-top.css' => 'flat top',
      'pace-theme-loading-bar.css' => 'loading bar',
      'pace-theme-mac-osx.css' => 'mac osx',
    ),
    '#default_value' => variable_get('pace_theme', array()),
  );
  $form['pace_load_on_admin_enabled'] = array(
    '#title' => t('Load in administration pages.'),
    '#description' => t('PACE is disabled by default on administration pages. Check to enable'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('pace_load_on_admin_enabled', array()),
  );
  $form['pace_custom_color_enabled'] = array(
    '#title' => t('EXPERIMENTAL: Select custom color for PACE.'),
    '#description' => t('Override default PACE color. This setting will be outputted as CSS in your html head.<br>
      It will not be aggregated. NOT compatible with all PACE themes.'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('pace_custom_color_enabled', array()),
  );
  $form['pace_custom_color_value'] = array(
    '#title' => t('Set your color using HEX notation.'),
    '#description' => t('Do not include the # sign.'),
    '#type' => 'textfield',
    '#default_value' => variable_get('pace_custom_color_value', array()),
  );
  return system_settings_form($form);
}