diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-04 20:09:29 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-04 20:09:29 +0000 |
commit | aba81ab9ddebb1ec20f5348d011ee714a1912941 (patch) | |
tree | ce4e9844a0d830d4d494289624af1b61aa3b6fc8 /profiles | |
parent | f179a802367e561d6c9675f79a48fa98d1b2620d (diff) | |
download | brdo-aba81ab9ddebb1ec20f5348d011ee714a1912941.tar.gz brdo-aba81ab9ddebb1ec20f5348d011ee714a1912941.tar.bz2 |
#480660 follow-up by catch: Code style changes and changelog entry.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/default/default.profile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/profiles/default/default.profile b/profiles/default/default.profile index d75e878c4..2bab8f835 100644 --- a/profiles/default/default.profile +++ b/profiles/default/default.profile @@ -221,16 +221,12 @@ function default_profile_tasks(&$task, $url) { variable_set('user_admin_role', $rid); // Assign all available permissions to this role. - foreach (module_implements('perm') as $module) { - if ($permissions = module_invoke($module, 'perm')) { - foreach (array_keys($permissions) as $permission) { - db_insert('role_permission') - ->fields(array( - 'rid' => $rid, - 'permission' => $permission, - ))->execute(); - } - } + foreach (module_invoke_all('perm') as $key => $value) { + db_insert('role_permission') + ->fields(array( + 'rid' => $rid, + 'permission' => $key, + ))->execute(); } // Update the menu router information. |