function autoassignrole_update_6004 in Auto Assign Role 6.2
Same name and namespace in other branches
- 6 autoassignrole.install \autoassignrole_update_6004()
File
- ./
autoassignrole.install, line 225 - The autoassignrole.install file
Code
function autoassignrole_update_6004() {
$value = db_fetch_object(db_query("SELECT arid FROM {autoassignrole} WHERE arid = '%s'", 'auto_admin_active'));
if (!$value->arid) {
$sql = "";
$ret[] = update_sql("INSERT into {autoassignrole} (arid,value) VALUES ('auto_admin_active', '0')");
}
return $ret;
}