Enable new dependencies via update.php.
This commit is contained in:
parent
69a8afab90
commit
034972e006
17
farm.install
17
farm.install
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue