2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
'#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>';
'#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>';