function twitter_uninstall in Twitter 6.4
Same name and namespace in other branches
- 6.5 twitter.install \twitter_uninstall()
- 6.2 twitter.install \twitter_uninstall()
- 6.3 twitter.install \twitter_uninstall()
- 7.6 twitter.install \twitter_uninstall()
- 7.3 twitter.install \twitter_uninstall()
- 7.4 twitter.install \twitter_uninstall()
- 7.5 twitter.install \twitter_uninstall()
Implements hook_uninstall()
File
- ./
twitter.install, line 767 - Install, update and uninstall functions for the twitter module.
Code
function twitter_uninstall() {
// Remove tables.
drupal_uninstall_schema('twitter');
// Remove variables
variable_del('twitter_post_default_state');
variable_del('twitter_consumer_key');
variable_del('twitter_consumer_secret');
variable_del('twitter_import');
variable_del('twitter_expire');
variable_del('twitter_post_types');
// These ones are generated by appending a content type, plus there
// are two default ones
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'twitter_post_default_%'");
while ($var_name = db_result($result)) {
variable_del($var_name);
}
variable_del('twitter_signin_button');
variable_del('twitter_signin_register');
}