You are here

function entity_metadata_user_save in Entity API 7

Callback to save a user account.

1 string reference to 'entity_metadata_user_save'
_entity_info_add_metadata in ./entity.module
Adds metadata and callbacks for core entities to the entity info.

File

modules/callbacks.inc, line 941
Provides various callbacks for the whole core module integration.

Code

function entity_metadata_user_save($account) {
  $edit = (array) $account;

  // Don't save the hashed password as password.
  unset($edit['pass']);
  user_save($account, $edit);
}