You are here

ultimenu.install in Ultimenu 7

Same filename and directory in other branches
  1. 8.2 ultimenu.install
  2. 8 ultimenu.install

Install, update and uninstall functions for the ultimenu module.

File

ultimenu.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the ultimenu module.
 */

/**
 * Implements hook_install().
 */
function ultimenu_install() {
  db_update('system')
    ->fields(array(
    'weight' => 11,
  ))
    ->condition('type', 'module')
    ->condition('name', 'ultimenu')
    ->execute();
}

/**
 * Implements hook_uninstall().
 */
function ultimenu_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'ultimenu_%'");
}

Functions

Namesort descending Description
ultimenu_install Implements hook_install().
ultimenu_uninstall Implements hook_uninstall().