| 7 shortcut.module | shortcut_set_assign_user($shortcut_set, $account) |
| 8 shortcut.module | shortcut_set_assign_user($shortcut_set, $account) |
Assigns a user to a particular shortcut set.
Parameters
$shortcut_set: An object representing the shortcut set.
$account: A user account that will be assigned to use the set.
4 calls to shortcut_set_assign_user()
File
- modules/
shortcut/ shortcut.module, line 441 - Allows users to manage customizable lists of shortcut links.
Code
function shortcut_set_assign_user($shortcut_set, $account) {
db_merge('shortcut_set_users')
->key(array('uid' => $account->uid))
->fields(array('set_name' => $shortcut_set->set_name))
->execute();
drupal_static_reset('shortcut_current_displayed_set');
}
Login or register to post comments