function user_set_attribute

6.x user.module user_set_attribute($user_id, $name, $value)

Very similar to variable_set

4 calls to user_set_attribute()
calendar_get_appointments_for_faculty in modules/calendar/calendar.module
Return back a list of appointment content nodes for this faculty member, which fall between the specified datetimes.
system_login_form_submit in modules/system/system.module
Submit handler for login form. If we are here, it probably means we have indeed authenticated. Just in case, we will test the form_state["passed_authentication"] value, which we expect to have been set in our validate handler.
user_edit_attribute_form_submit in modules/user/user.module
user_edit_user_attributes_form_submit in modules/user/user.module

File

modules/user/user.module, line 1246

Code

function user_set_attribute($user_id, $name, $value) {
  db_query("REPLACE INTO user_attributes (user_id, name, value, updated) VALUES (?, ?, ?, ?)", array($user_id, $name, $value, time()));
}