Skip to content
Snippets Groups Projects
Commit 1afb654e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #88732 by webernet: made the admin page validate.

parent 2b4a7762
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1971,12 +1971,10 @@ function theme_admin_page($blocks) {
$output = '<div class="admin">';
$output .= '<div class="compact-link">';
if (system_admin_compact_mode()) {
$alt = t('Produce a less compact layout that includes descriptions.');
$output .= l(t('Show descriptions'), 'admin/compact/off', array('alt' => $alt, 'title' => $alt));
$output .= l(t('Show descriptions'), 'admin/compact/off', array('title' => t('Produce a less compact layout that includes descriptions.')));
}
else {
$alt = t('Produce a more compact layout that doesn\'t include descriptions.');
$output .= l(t('Hide descriptions'), 'admin/compact/on', array('alt' => $alt, 'title' => $alt));
$output .= l(t('Hide descriptions'), 'admin/compact/on', array('title' => t('Produce a more compact layout that doesn\'t include descriptions.')));
}
$output .= '</div>';
......@@ -2035,7 +2033,7 @@ function theme_admin_block_content($content) {
if (system_admin_compact_mode()) {
$output = '<ul class="menu">';
foreach ($content as $item) {
$output .= '<li class="leaf">'. l($item['title'], $item['path'], array('alt' => $item['description'], 'title' => $item['description'])) .'</li>';
$output .= '<li class="leaf">'. l($item['title'], $item['path'], array('title' => $item['description'])) .'</li>';
}
$output .= '</ul>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment