function inactive_user_uninstall in Inactive User 6
Same name and namespace in other branches
- 5 inactive_user.install \inactive_user_uninstall()
- 7 inactive_user.install \inactive_user_uninstall()
Implementation of hook_uninstall().
File
- ./
inactive_user.install, line 84 - The inactive user module controls inactive users.
Code
function inactive_user_uninstall() {
drupal_uninstall_schema('inactive_user');
//SELECT name FROM variable WHERE (name LIKE 'inactive_user_%');
$inactive_user_variables = "inactive_user_%";
$settings = db_query("SELECT name FROM {variable} WHERE name LIKE '%s'", $inactive_user_variables);
while ($row = db_fetch_object($settings)) {
variable_del($row->name);
}
drupal_set_message(t("Inactive user has been uninstalled."));
}