Commit 116d091a authored by Dries's avatar Dries

- Patch #392582 by karschsp: fixed broken anchor tags on permissions page.

parent 14009fb9
......@@ -568,6 +568,7 @@ function user_admin_perm($form_state, $rid = NULL) {
$info = drupal_parse_info_file(drupal_get_path('module', $module) . "/$module.info");
$form['permission'][] = array(
'#markup' => $info['name'],
'#id' => $module,
);
foreach ($permissions as $perm => $perm_item) {
$options[$perm] = '';
......@@ -635,7 +636,7 @@ function theme_user_admin_perm($form) {
$row = array();
// Module name
if (is_numeric($key)) {
$row[] = array('data' => drupal_render($form['permission'][$key]), 'class' => 'module', 'id' => 'module-' . $form['permission'][$key]['#markup'], 'colspan' => count($form['role_names']) + 1);
$row[] = array('data' => drupal_render($form['permission'][$key]), 'class' => 'module', 'id' => 'module-' . $form['permission'][$key]['#id'], 'colspan' => count($form['role_names']) + 1);
}
else {
// Permission row.
......
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