You are here

function block_update_7000 in Drupal 7

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.

Related topics

File

modules/block/block.install, line 215
Install, update and uninstall functions for the block module.

Code

function block_update_7000() {
  db_update('system')
    ->fields(array(
    'weight' => '-5',
  ))
    ->condition('name', 'block')
    ->execute();
}