responsive_menus.install in Responsive Menus 7
Same filename and directory in other branches
Install hooks for Responsive Menus.
File
responsive_menus.installView 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
Name | Description |
---|---|
responsive_menus_enable | Implements hook_enable(). |
responsive_menus_uninstall | Implements hook_uninstall(). |