You are here

function boost_admin_htaccess_generation in Boost 7

Form builder; Configure boost settings.

See also

system_settings_form()

1 string reference to 'boost_admin_htaccess_generation'
boost_menu in ./boost.module
Implements hook_menu().

File

./boost.admin.htaccess.inc, line 177
Admin page callbacks for the boost module.

Code

function boost_admin_htaccess_generation() {

  // Generated .htaccess output.
  $htaccess = boost_admin_htaccess_generate_htaccess();
  $form['boost_generated'] = array(
    '#type' => 'textarea',
    '#title' => t('Generated Rules'),
    '#default_value' => $htaccess,
    '#rows' => count(explode("\n", $htaccess)) + 1,
    '#wysiwyg' => FALSE,
    '#description' => t("Copy this into your .htaccess file below <pre><tt>  # If your site is running in a VirtualDocumentRoot at http://example.com/,\n  # uncomment the following line:\n  # RewriteBase / </tt></pre> and above <pre><tt>  # Pass all requests not referring directly to files in the filesystem to\n  # index.php. Clean URLs are handled in drupal_environment_initialize().</tt></pre><br />Note that the generated rules' settings can be configure at !link.", array(
      '!link' => l('admin/config/development/performance/boost/htaccess-settings', 'admin/config/development/performance/boost/htaccess-settings'),
    )),
  );

  // Reset htaccess on submit.
  $form['#submit'][] = 'boost_form_submit_handler';
  return $form;
}