summaryrefslogtreecommitdiff
path: root/modules/block/block.admin.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-11 02:12:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-09-11 02:12:42 +0000
commit9dd21483fef323f26e3cadf49aee749540c5e956 (patch)
tree8a4aa83d17fd7c9779479135e135c84ba8f50e1f /modules/block/block.admin.inc
parente3acab6333418c7d34d76907091ef15b16cefd98 (diff)
downloadbrdo-9dd21483fef323f26e3cadf49aee749540c5e956.tar.gz
brdo-9dd21483fef323f26e3cadf49aee749540c5e956.tar.bz2
#564370 by catch: Fixed block caching form_alter() which was located in wrong file post-registry rip.
Diffstat (limited to 'modules/block/block.admin.inc')
-rw-r--r--modules/block/block.admin.inc24
1 files changed, 0 insertions, 24 deletions
diff --git a/modules/block/block.admin.inc b/modules/block/block.admin.inc
index a0ecb48df..c0f3c4789 100644
--- a/modules/block/block.admin.inc
+++ b/modules/block/block.admin.inc
@@ -7,30 +7,6 @@
*/
/**
- * Implement hook_form_FORM_ID_alter().
- */
-function block_form_system_performance_settings_alter(&$form, &$form_state) {
- $disabled = 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,
- );
-
- // Check if the "Who's online" block is enabled.
- $online_block_enabled = db_query_range("SELECT 1 FROM {block} b WHERE module = 'user' AND delta = 'online' AND status = 1", array(), 0, 1)->fetchField();
-
- // If the "Who's online" block is enabled, append some descriptive text to
- // the end of the form description.
- if ($online_block_enabled) {
- $form['page_cache']['cache']['#description'] .= '<p>' . t('When caching is enabled, anonymous user sessions are only saved to the database when needed, so the "Who\'s online" block does not display the number of anonymous users.') . '</p>';
- }
-}
-
-/**
* Menu callback for admin/structure/block.
*/
function block_admin_display($theme = NULL) {