You are here

function location_update_6308 in Location 7.3

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.4 location.install \location_update_6308()

Tell users about the new location_node module and enable it.

File

./location.install, line 1527
Install, update and uninstall functions for the location module.

Code

function location_update_6308() {
  $message = t("Note: Location module has now split off node location support into a separate 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/modules'),
  ));
  if (module_exists('location')) {
    module_enable(array(
      'location_node',
    ));
  }
  else {
    $message .= '<br />' . t("Note: Refusing to enable location_node.module, as location.module is not currently enabled.");
  }
  return $message;
}