You are here

function farm_access_uninstall in farmOS 7

Implements hook_uninstall().

File

modules/farm/farm_access/farm_access.install, line 28
Farm Access install file.

Code

function farm_access_uninstall() {

  // Delete the farm roles provided by this module.
  $roles = farm_access_farm_access_roles();
  foreach ($roles as $name) {
    user_role_delete($name);
  }

  // Clean up variables.
  variable_del('farm_access_allow_origin');
}