function block_install
Same name in other branches
- 9 core/modules/block/block.install \block_install()
- 8.9.x core/modules/block/block.install \block_install()
- 10 core/modules/block/block.install \block_install()
- 11.x core/modules/block/block.install \block_install()
Implements hook_install().
File
-
modules/
block/ block.install, line 178
Code
function block_install() {
// 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.
db_update('system')->fields(array(
'weight' => -5,
))
->condition('name', 'block')
->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.