You are here

function autoassignrole_update_6000 in Auto Assign Role 6

Same name and namespace in other branches
  1. 6.2 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;
}