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