You are here

function farm_map_update_7002 in farmOS 7

Install new Google Maps module if an API key is saved.

File

modules/farm/farm_map/farm_map.install, line 24
Farm map install.

Code

function farm_map_update_7002(&$sandbox) {
  $module = 'farm_map_google';
  if (variable_get('farm_map_google_api_key', FALSE) && !module_exists($module)) {
    module_enable(array(
      $module,
    ));
  }
}