You are here

function menu_block_uninstall in Menu Block 5

Same name and namespace in other branches
  1. 5.2 menu_block.install \menu_block_uninstall()
  2. 6.2 menu_block.install \menu_block_uninstall()
  3. 7.3 menu_block.install \menu_block_uninstall()
  4. 7.2 menu_block.install \menu_block_uninstall()

Implementation of hook_uninstall().

File

./menu_block.install, line 6

Code

function menu_block_uninstall() {
  foreach (variable_get('menu_block_enabled_blocks', array()) as $delta => $enabled) {
    variable_del("menu_block_{$delta}_mid");
    variable_del("menu_block_{$delta}_level");
    variable_del("menu_block_{$delta}_depth");
    variable_del("menu_block_{$delta}_expanded");
  }
  variable_del('menu_block_enabled_blocks');
}