admin.install in Admin 7.2
Same filename and directory in other branches
Install, update and uninstall functions for the admin module.
File
admin.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the admin module.
*/
/**
* Implements hook_uninstall().
*/
function admin_uninstall() {
variable_del('admin_toolbar');
}
/**
* Implements hook_enable().
*/
function admin_enable() {
// Weight admin to come after other modules -- in particular, admin_theme().
db_update('system')
->fields(array(
'weight' => 1,
))
->condition('name', 'admin')
->condition('type', 'module')
->execute();
}
Functions
Name | Description |
---|---|
admin_enable | Implements hook_enable(). |
admin_uninstall | Implements hook_uninstall(). |