You are here

function farm_update_7007 in farmOS 7

Install Farm Access and Role Delegation, uninstall Farm Manager.

File

./farm.install, line 371
farmOS install file.

Code

function farm_update_7007(&$sandbox) {

  // Enable the Farm Access and Role Delegation modules.
  _farm_update_enable_modules(array(
    'farm_access',
    'role_delegation',
  ));

  // Disable and uninstall the Farm Manager module.
  $module = 'farm_manager';
  if (module_exists($module)) {
    module_disable(array(
      $module,
    ));
    drupal_uninstall_modules(array(
      $module,
    ));
  }
}