You are here

boost.admin.filesystem.inc in Boost 7

Admin page callbacks for the boost module.

File

boost.admin.filesystem.inc
View source
<?php

/**
 * @file
 * Admin page callbacks for the boost module.
 */

/**
 * Form builder; Configure boost settings.
 *
 * @ingroup forms
 * @see system_settings_form()
 */
function boost_admin_filesystem_settings() {
  $form['boost_root_cache_dir'] = array(
    '#type' => 'textfield',
    '#title' => t('Root cache directory'),
    '#default_value' => variable_get('boost_root_cache_dir', BOOST_ROOT_CACHE_DIR),
  );
  $form['boost_normal_dir'] = array(
    '#type' => 'textfield',
    '#title' => t('Normal cache directory'),
    '#default_value' => variable_get('boost_normal_dir', BOOST_NORMAL_DIR),
  );
  $form['boost_char'] = array(
    '#type' => 'textfield',
    '#title' => t('Character replacement for "?" in the URL'),
    '#default_value' => variable_get('boost_char', BOOST_CHAR),
  );

  // reset htaccess on submit;
  $form['#submit'][] = 'boost_form_submit_handler';
  return system_settings_form($form);
}

Functions

Namesort descending Description
boost_admin_filesystem_settings Form builder; Configure boost settings.