You are here

domain_menu_access.install in Domain Menu Access 6

Same filename and directory in other branches
  1. 8 domain_menu_access.install
  2. 7 domain_menu_access.install

Domain Menu Access module (un)installation functions.

File

domain_menu_access.install
View source
<?php

/**
 * @file
 * Domain Menu Access module (un)installation functions.
 */

/**
 * Implementation of hook_uninstall().
 */
function domain_menu_access_uninstall() {
  $res = db_query("SELECT mlid, options FROM {menu_links}");
  while ($row = db_fetch_array($res)) {
    $options = unserialize($row['options']);
    if (isset($options['domain_menu_access'])) {
      unset($options['domain_menu_access']);
      db_query("UPDATE {menu_links} SET options = '%s' WHERE mlid = %d", serialize($options), $row['mlid']);
    }
  }
}

Functions

Namesort descending Description
domain_menu_access_uninstall Implementation of hook_uninstall().