You are here

function path_access_uninstall in Path Access 6

Same name and namespace in other branches
  1. 5 path_access.install \path_access_uninstall()

File

./path_access.install, line 50

Code

function path_access_uninstall() {
  $res = drupal_uninstall_schema('path_access');
  $success = TRUE;
  foreach ($res as $v) {
    if ($v['success'] !== TRUE) {
      $success = FALSE;
      break;
    }
  }
  if ($success) {
    drupal_set_message(t('Path Access module uninstalled tables successfully.'));
  }
  else {
    drupal_set_message(t('The uninstallation of Path Access module was unsuccessful.'), 'error');
  }
}