You are here

function getlocations_enable in Get Locations 7

Same name and namespace in other branches
  1. 7.2 getlocations.install \getlocations_enable()

Implements hook_enable().

File

./getlocations.install, line 32
getlocations.install @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_enable() {
  if (drupal_is_cli()) {
    return;
  }
  if (isset($_GET) && $_GET['q'] == 'admin/modules' || isset($_REQUEST['overlay']) && $_REQUEST['overlay'] == 'admin/modules') {
    drupal_set_message(st('Thank you for installing Getlocations. To set it up please visit the <a href="@url">configuration page</a>.', array(
      '@url' => url('admin/config/services/getlocations'),
    )), 'status');
  }
}