You are here

function farm_map_update_7003 in farmOS 7

Install new Mapbox module if an API key is saved.

File

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

Code

function farm_map_update_7003(&$sandbox) {
  $module = 'farm_map_mapbox';
  if (variable_get('farm_map_mapbox_api_key', FALSE) && !module_exists($module)) {
    module_enable(array(
      $module,
    ));
  }
}