Commit 4575c982 authored by webchick's avatar webchick

#740258 by coltrane, mr.baileys: Fixed Permissions not shown when module...

#740258 by coltrane, mr.baileys: Fixed Permissions not shown when module human-readable name conflicts.
parent ab21e07b
......@@ -678,11 +678,11 @@ function user_admin_permissions($form, $form_state, $rid = NULL) {
// display name.
$modules = array();
foreach (module_implements('permission') as $module) {
$modules[$module_info[$module]['name']] = $module;
$modules[$module] = $module_info[$module]['name'];
}
ksort($modules);
asort($modules);
foreach ($modules as $display_name => $module) {
foreach ($modules as $module => $display_name) {
if ($permissions = module_invoke($module, 'permission')) {
$form['permission'][] = array(
'#markup' => $module_info[$module]['name'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment