You are here

function blockcache_alter_admin_settings in Block Cache Alter 6

Same name and namespace in other branches
  1. 7 blockcache_alter.module \blockcache_alter_admin_settings()

Menu callback, settings page for blockcache alter

1 string reference to 'blockcache_alter_admin_settings'
blockcache_alter_menu in ./blockcache_alter.module
Implementation of hook_menu().

File

./blockcache_alter.module, line 45
Block Cache alter.

Code

function blockcache_alter_admin_settings() {
  $status = _blockcache_alter_core_patch();
  $form['bca_corepatch'] = array(
    '#type' => 'checkbox',
    '#title' => t('Core patch ?'),
    '#description' => t('Check this box if you applied one of the 2 core patches that comes with this module. This will extend the caching settings fieldset on the block configuration page. Note: if you did not apply the patch but check the box, the additional functionality simply won\'t work at all.<br /><strong>Current status: you have @status applied a blockcache alter patch.</strong>', array(
      '@status' => $status,
    )),
    '#default_value' => variable_get('bca_corepatch', 0),
  );
  $form['bca_debug'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show debug information ?'),
    '#description' => t('Debug info: shows messages when each block is refreshed.'),
    '#default_value' => variable_get('bca_debug', 0),
  );
  return system_settings_form($form);
}