function spaces_user_user_update in Spaces 7
Same name and namespace in other branches
- 7.3 spaces_user/spaces_user.module \spaces_user_user_update()
Implements hook_user_update().
File
- spaces_user/
spaces_user.module, line 104
Code
function spaces_user_user_update(&$edit, $account, $category) {
// Save preset values
if (!empty($edit['spaces_preset_user'])) {
$space = spaces_load('user', $account->uid);
if ($space
->activate()) {
$space->controllers->variable
->set('spaces_preset_user', $edit['spaces_preset_user']);
}
}
}