You are here

function location_user_user_update in Location 7.4

Same name and namespace in other branches
  1. 7.3 location_user.module \location_user_user_update()

Implement hook_user_update().

1 call to location_user_user_update()
location_user_user_insert in ./location_user.module
Implement hook_user_insert().

File

./location_user.module, line 74
Associate locations with users.

Code

function location_user_user_update(&$edit, $account, $category) {
  if (!empty($edit['locations'])) {
    location_save_locations($edit['locations'], array(
      'uid' => $account->uid,
    ));
  }
  unset($edit['locations']);
}