function block_form_system_performance_settings_alter
block_form_system_performance_settings_alter(&$form, &$form_state)
Implements hook_form_FORM_ID_alter().
File
- modules/block/block.module, line 1081
- Controls the visual building blocks a page is constructed with.
Code
function block_form_system_performance_settings_alter(&$form, &$form_state) { $disabled = (!variable_get('block_cache_bypass_node_grants', FALSE) && count(module_implements('node_grants'))); $form['caching']['block_cache'] = array( '#type' => 'checkbox', '#title' => t('Cache blocks'), '#default_value' => variable_get('block_cache', FALSE), '#disabled' => $disabled, '#description' => $disabled ? t('Block caching is inactive because you have enabled modules defining content access restrictions.') : NULL, '#weight' => -1, ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!block!block.module/function/block_form_system_performance_settings_alter/7.x