You are here

function location_update_6308 in Location 7.4

Same name and namespace in other branches
  1. 6.3 location.install \location_update_6308()
  2. 7.5 location.install \location_update_6308()
  3. 7.3 location.install \location_update_6308()

Well, I do have 99 updates to use :P

File

./location.install, line 1180
Installation / uninstallation routines.

Code

function location_update_6308() {
  $ret = array();
  drupal_set_message(t("Note: Location module has now split off node location support into a seperate module, called <em>Node Locations</em>. It has been enabled for you. If you don't want node locations, visit the <a href='!url'>modules page</a> and disable it.", array(
    '!url' => url('admin/build/modules'),
  )));
  if (module_exists('location')) {
    module_enable(array(
      'location_node',
    ));
  }
  else {
    drupal_set_message(t("Note: Refusing to enable location_node.module, as location.module is not currently enabled."));
  }
  return $ret;
}