route_planner.install in Route Planner 6
Same filename and directory in other branches
Provides install, upgrade and un-install functions for route_planner.
File
route_planner.installView source
<?php
/**
* @file
* Provides install, upgrade and un-install functions for route_planner.
*/
/**
* Implements hook_enable().
*/
function route_planner_enable() {
drupal_set_message(t('To use the Route planner, !addurl a block and !configureurl the block', array(
'!addurl' => l(t('add'), 'admin/structure/block'),
'!configureurl' => l(t('configure'), 'admin/config/content/routeplanner'),
)));
}
/**
* Implements hook_uninstall().
*/
function route_planner_uninstall() {
// Delete Route Planner variables.
variable_del('route_planner_address');
variable_del('route_planner_map_height');
variable_del('route_planner_map_width');
variable_del('route_planner_map_zoom');
}
Functions
Name | Description |
---|---|
route_planner_enable | Implements hook_enable(). |
route_planner_uninstall | Implements hook_uninstall(). |