You are here

admin.install in Admin 7.2

Same filename and directory in other branches
  1. 6.2 admin.install
  2. 6 admin.install

Install, update and uninstall functions for the admin module.

File

admin.install
View 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

Namesort descending Description
admin_enable Implements hook_enable().
admin_uninstall Implements hook_uninstall().