You are here

function farm_log_update_7004 in farmOS 7

Enable new sub-modules: Activity, Harvest, Input, Movement, Observation.

File

modules/farm/farm_log/farm_log.install, line 267
Farm Log install file.

Code

function farm_log_update_7004(&$sandbox) {
  $modules = array(
    'farm_log_activity',
    'farm_log_harvest',
    'farm_log_input',
    'farm_log_observation',
    'farm_movement',
  );
  foreach ($modules as $module) {
    if (!module_exists($module)) {
      module_enable(array(
        $module,
      ));
    }
  }
}