You are here

function book_access_uninstall in Book access 7.2

Same name and namespace in other branches
  1. 5 book_access.install \book_access_uninstall()
  2. 6.2 book_access.install \book_access_uninstall()
  3. 6 book_access.install \book_access_uninstall()

Implements hook_uninstall().

File

./book_access.install, line 377

Code

function book_access_uninstall() {
  $roles = user_roles();
  $variables = array();
  $variables[] = 'book_access_default_authors_access';
  foreach ($roles as $rid => $rname) {
    $variables[] = "book_access_default_role_{$rid}_access";
  }
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}