function globallink_uninstall in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.7 globallink.install \globallink_uninstall()
- 7.5 globallink.install \globallink_uninstall()
Implements hook_uninstall().
File
- ./
globallink.install, line 2007 - Installation file for GlobalLink module.
Code
function globallink_uninstall() {
variable_del('globallink_publish_node');
variable_del('globallink_cron_type');
variable_del('globallink_pager_limit');
variable_del('globallink_pd_url');
variable_del('globallink_pd_username');
variable_del('globallink_pd_password');
variable_del('globallink_pd_projectid');
variable_del('globallink_pd_submissionprefix');
variable_del('globallink_pd_classifier');
variable_del('globallink_pd_max_target');
variable_del('globallink_implementation_type');
$keys = array_keys($_SESSION);
foreach ($keys as $key) {
if (stristr($key, 'globallink') !== FALSE) {
unset($_SESSION[$key]);
}
}
}