You are here

function farm_area_update_7001 in farmOS 7

Install the Farm Area Types and Farm Water modules.

File

modules/farm/farm_area/farm_area.install, line 28
Farm area install.

Code

function farm_area_update_7001(&$sandbox) {
  $modules = array(
    'farm_area_types',
    'farm_water',
  );
  foreach ($modules as $module) {
    if (!module_exists($module)) {
      module_enable(array(
        $module,
      ));
    }
  }
}