You are here

function shib_auth_uninstall in Shibboleth Authentication 7.4

Same name and namespace in other branches
  1. 5.3 shib_auth.install \shib_auth_uninstall()
  2. 5.2 shib_auth.install \shib_auth_uninstall()
  3. 6.4 shib_auth.install \shib_auth_uninstall()
  4. 6 shib_auth.install \shib_auth_uninstall()
  5. 6.2 shib_auth.install \shib_auth_uninstall()
  6. 6.3 shib_auth.install \shib_auth_uninstall()

Implements hook_uninstall().

Hook to uninstall variables and the block, witch were created and used by the module.

File

./shib_auth.install, line 14
Install file of the Shibboleth authentication module for Drupal system.

Code

function shib_auth_uninstall() {

  // Drop variables.
  $variables = array(
    'shib_auth_link_text',
    'shib_auth_handler_url',
    'shib_auth_handler_protocol',
    'shib_auth_wayf_uri',
    'shib_auth_full_handler_url',
    'shib_auth_full_logout_url',
    'shib_auth_username_variable',
    'shib_auth_email_variable',
    'shib_auth_auto_destroy_session',
    'shib_auth_logout_url',
    'shib_auth_login_url',
    'shib_auth_debug_state',
    'shib_auth_debug_url',
    'shib_auth_enable_custom_mail',
    'shib_auth_define_username',
    'shib_auth_account_linking',
    'shib_auth_is_passive',
    'shib_auth_forceauthn',
    'shib_auth_terms_accept',
    'shib_auth_terms_url',
    'shib_auth_terms_ver',
    'shib_auth_force_https',
    'shib_auth_version',
  );
  foreach ($variables as $variable) {
    variable_del($variable);
  }
  drupal_set_message(t('The Shibboleth authentication module was uninstalled successfully.'));
}