remove page_top & page_bottom from theme info

Created on 4 December 2011, over 12 years ago
Updated 26 June 2023, 12 months ago

Is it safe to remove page_top & page_bottom from custom theme .info file?? or it's required for every themes.

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';
  }
}
// Render page_top and page_bottom into top level variables.
  $variables['page_top'] = drupal_render($variables['page']['page_top']);
  $variables['page_bottom'] = drupal_render($variables['page']['page_bottom']);

Seems like it injects page_top&bottom to every theme even it's not defined.

πŸ“Œ Task
Status

Postponed: needs info

Version

9.5

Component
SystemΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡­πŸ‡°Hong Kong droplet

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024