function user_service_save in Services 6
Same name and namespace in other branches
- 6.2 services/user_service/user_service.inc \user_service_save()
- 7 services/user_service/user_service.inc \user_service_save()
Save user details.
Parameters
$user_data: Object. The user object with all user data.
1 string reference to 'user_service_save'
- user_service_service in services/
user_service/ user_service.module - Implementation of hook_service().
File
- services/
user_service/ user_service.inc, line 123 - @author Services Dev Team
Code
function user_service_save($account) {
if (!($account = user_save($account))) {
return services_error(t('Error on saving the user.'));
}
// Everything went right.
// Return the user ID
return $account->uid;
}