function autoassignrole_update_6000 in Auto Assign Role 6.2
Same name and namespace in other branches
- 6 autoassignrole.install \autoassignrole_update_6000()
File
- ./
autoassignrole.install, line 124 - The autoassignrole.install file
Code
function autoassignrole_update_6000() {
$items = array();
$sql = "SELECT name FROM {variable} WHERE name LIKE 'AUTOASSIGNROLE_%%'";
$vars = db_query($sql);
while ($var = db_fetch_object($vars)) {
variable_del($var->name);
}
$items[] = array(
"success" => 1,
"query" => "Cleaned up old variables and installed new table",
);
autoassignrole_install();
return $items;
}