function opigno_statistics_app_user_update in Opigno Statistics App 7
Implements hook_user_update().
Update opigno_statistics_user_course.username
Parameters
array $edit The array of form values submitted by the user.:
StdClass $account The user object on which the operation is performed.:
StdClass $category The active category of user information being edited.:
File
- ./
opigno_statistics_app.module, line 510 - Module file. Defines module hooks.
Code
function opigno_statistics_app_user_update(&$edit, $account, $category) {
db_update('opigno_statistics_user_course')
->fields(array(
'username' => $account->name,
))
->condition('uid', $account->uid)
->execute();
}