function linkedin_uninstall in LinkedIn Integration 6
Same name and namespace in other branches
- 7 linkedin.install \linkedin_uninstall()
Implementation of hook_uninstall().
File
- ./
linkedin.install, line 57
Code
function linkedin_uninstall() {
drupal_uninstall_schema('linkedin');
// Delete variables
variable_del('linkedin_consumer_key');
variable_del('linkedin_consumer_secret');
$types = node_get_types('names');
array_push($types, 'event_signup');
foreach ($types as $type) {
$type = strtolower($type);
variable_del('linkedin_enabled_' . $type);
variable_del('linkedin_default_format_' . $type);
}
}