You are here

me.install in me aliases 7

Same filename and directory in other branches
  1. 8 me.install
  2. 5 me.install
  3. 6.2 me.install
  4. 6 me.install

Provides 'me' aliases install and uninstall routines.

File

me.install
View source
<?php

//$Id$

/**
 * @file
 *
 * Provides 'me' aliases install and uninstall routines.
 */

/**
 * Implements hook_uninstall().
 */
function me_uninstall() {
  $vars = array(
    'me_alias',
    'me_case_insensitive',
    'me_redirect',
    'me_path_rule',
    'me_paths',
    'me_redirect_anonymous',
    'me_theme_menu_item_link',
    'me_rewrite_link',
    'me_user_override',
  );
  foreach ($vars as $var) {
    variable_del($var);
  }
}

/**
 * Implements hook_install().
 */
function me_install() {
  db_update('system')
    ->fields(array(
    'weight' => 9999,
  ))
    ->condition('name', 'me')
    ->execute();
}

/**
 * Rebuild menu registry.
 */
function me_update_7001() {
  menu_rebuild();
}

/**
 * Rebuild menu registry for URL parameters change
 */
function me_update_7100() {
  menu_rebuild();
}

Functions

Namesort descending Description
me_install Implements hook_install().
me_uninstall Implements hook_uninstall().
me_update_7001 Rebuild menu registry.
me_update_7100 Rebuild menu registry for URL parameters change