You are here

function menu_token_uninstall in Menu Token 7

Same name and namespace in other branches
  1. 8 menu_token.install \menu_token_uninstall()
  2. 5 menu_token.install \menu_token_uninstall()
  3. 6 menu_token.install \menu_token_uninstall()
  4. 9.1.x menu_token.install \menu_token_uninstall()

Implements hook_uninstall().

File

./menu_token.install, line 219
Install file for menu_token module.

Code

function menu_token_uninstall() {
  $result = db_select('variable', 'v')
    ->fields('v', array(
    'name',
  ))
    ->condition('name', 'menu_token_%', '=')
    ->execute();
  foreach ($result as $row) {
    variable_del($row->name);
  }
}