Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
missing page-bottom
function system_system_info_alter(&$info, $file, $type) {
// Remove page-top from the blocks UI since it is reserved for modules to
// populate from outside the blocks system.
if ($type == 'theme') {
$info['regions_hidden'][] = 'page_top';
$info['regions_hidden'][] = 'page_bottom';
}
}
Comments
Comment #1
droplet CreditAttribution: droplet commentedComment #2
tregeagle CreditAttribution: tregeagle commentedSimple comment change, patch applies cleanly
Comment #3
tregeagle CreditAttribution: tregeagle commentedComment #4
xjmThanks for the patch. I noticed one grammatical error:
I think we need to say "they are" now that we are referring to two regions?
Comment #5
LSU_JBob CreditAttribution: LSU_JBob commentedchanged to "they are"... picked up from novice queue
Comment #6
xjmThanks, looks great.
Comment #7
xjmComment #8
droplet CreditAttribution: droplet commentedThanks.
also share your thought to a following up/relative issue: #1360428: remove page_top & page_bottom from theme info
Comment #9
webchickCommitted and pushed to 8.x and 7.x. Thanks!