function autoassignrole_uninstall in Auto Assign Role 5
Same name and namespace in other branches
- 5.2 autoassignrole.install \autoassignrole_uninstall()
- 6.2 autoassignrole.install \autoassignrole_uninstall()
- 6 autoassignrole.install \autoassignrole_uninstall()
- 7.2 autoassignrole.install \autoassignrole_uninstall()
- 7 autoassignrole.install \autoassignrole_uninstall()
Implementation of hook_uninstall().
File
- ./
autoassignrole.install, line 5
Code
function autoassignrole_uninstall() {
$sql = "SELECT name FROM {variable} WHERE name LIKE 'AUTOASSIGNROLE_%%'";
$vars = db_query($sql);
while ($var = db_fetch_object($vars)) {
variable_del($var->name);
}
}