Enable new dependencies via update.php.

This commit is contained in:
Michael Stenta 2015-06-16 16:21:58 -04:00
parent 69a8afab90
commit 034972e006
1 changed files with 17 additions and 0 deletions

View File

@ -51,3 +51,20 @@ function farm_update_7000(&$sandbox) {
}
}
/**
* Update to Openlayers 3
*/
function farm_update_7001(&$sandbox) {
// Enable new module dependencies.
$modules = array(
'openlayers_geofield',
'views_geojson',
);
foreach ($modules as $module) {
if (!module_exists($module)) {
module_enable($module);
}
}
}