You are here

responsive_menus.install in Responsive Menus 7

Same filename and directory in other branches
  1. 8 responsive_menus.install

Install hooks for Responsive Menus.

File

responsive_menus.install
View source
<?php

/**
 * @file
 * Install hooks for Responsive Menus.
 */

/**
 * Implements hook_enable().
 */
function responsive_menus_enable() {

  // Need to clear caches for Context to see our new reaction.
  cache_clear_all('plugins:context:plugins', 'cache');
}

/**
 * Implements hook_uninstall().
 */
function responsive_menus_uninstall() {
  $variables = db_query("SELECT name FROM {variable} WHERE name LIKE :name", array(
    ':name' => 'responsive_menus' . '%',
  ))
    ->fetchAll();
  foreach ($variables as $variable) {
    variable_del($variable->name);
  }
}

Functions