admin.install 480 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the admin module.
  5. */
  6. /**
  7. * Implements hook_uninstall().
  8. */
  9. function admin_uninstall() {
  10. variable_del('admin_toolbar');
  11. }
  12. /**
  13. * Implements hook_enable().
  14. */
  15. function admin_enable() {
  16. // Weight admin to come after other modules -- in particular, admin_theme().
  17. db_update('system')
  18. ->fields(array('weight' => 1))
  19. ->condition('name', 'admin')
  20. ->condition('type', 'module')
  21. ->execute();
  22. }