function shib_auth_uninstall in Shibboleth Authentication 6.4
Same name and namespace in other branches
- 5.3 shib_auth.install \shib_auth_uninstall()
- 5.2 shib_auth.install \shib_auth_uninstall()
- 6 shib_auth.install \shib_auth_uninstall()
- 6.2 shib_auth.install \shib_auth_uninstall()
- 6.3 shib_auth.install \shib_auth_uninstall()
- 7.4 shib_auth.install \shib_auth_uninstall()
Implementation of hook_uninstall().
Hook to uninstall variables and the block, witch were created and used by the module
File
- ./
shib_auth.install, line 35 - This is the 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);
}
// Remove block from the 'blocks' table manually
db_query("DELETE FROM {blocks} WHERE module = 'shib_auth'");
cache_clear_all(NULL, 'cache_block');
drupal_uninstall_schema('shib_auth');
drupal_set_message(t('The Shibboleth authentication module was uninstalled successfully.'));
}