You are here

route_planner.install in Route Planner 6

Same filename and directory in other branches
  1. 8 route_planner.install
  2. 7 route_planner.install

Provides install, upgrade and un-install functions for route_planner.

File

route_planner.install
View 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