You are here

function patterns_set_user_permissions in Patterns 7.2

Run Drupal API function to gran permissions

Parameters

string $uid User ID:

array $attributes Set of values that will be updated. All are optional.:

1 call to patterns_set_user_permissions()
set_user_permissions in patterns_components/components/user.inc
Wraps the call to drupal_form_submit for 'user_profile_form'. Gathers all the expected values from the form and prepare them for the query.

File

patterns_components/components/user.inc, line 623

Code

function patterns_set_user_permissions($rid, $permissions) {
  user_role_grant_permissions($rid, $permissions);
}