You are here

function boost_admin_performance_page in Boost 6

Performs alterations to the system settings form before it is rendered.

in boost.module

See also

hook_form_alter()

1 call to boost_admin_performance_page()
boost_form_alter in ./boost.module
Implementation of hook_form_alter(). Performs alterations before a form is rendered.

File

./boost.admin.inc, line 17
All the code for the Boost module's administrative interface.

Code

function boost_admin_performance_page($form = array()) {
  $form['#title'] = t('Anonymous page caching');
  $form['page_compression']['#title'] = t('Gzip page compression (Boost & Core)');
  $form['#description'] .= ' ' . t('The page must first be visited by an anonymous user in order for the cache to work on subsequent requests for that page. Boost & Core caching do not work for logged in users.');
  $form['boost_core_clear'] = array(
    '#type' => 'submit',
    '#value' => t('Clear core page cached data: !count pages', array(
      '!count' => boost_count_core_db(),
    )),
    '#submit' => array(
      'boost_clear_core_page_cache_submit',
    ),
  );
  return $form;
}