block_update_7000

Versions
7
block_update_7000()

Set system.weight to a low value for block module.

Block should go first so that other modules can alter its output during hook_page_alter(). Almost everything on the page is a block, so before block module runs, there will not be much to alter.

Code

modules/block/block.install, line 226

<?php
function block_update_7000() {
  db_update('system')
    ->fields(array('weight' => '-5'))
    ->condition('name', 'block')
    ->execute();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.