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

- Patch #12713 by Goba: remove useless t() function from help module.

parent bb0f78ec
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
...@@ -67,7 +67,7 @@ function help_links_as_list() { ...@@ -67,7 +67,7 @@ function help_links_as_list() {
foreach (module_list() as $name) { foreach (module_list() as $name) {
if (module_hook($name, 'help')) { if (module_hook($name, 'help')) {
if (module_invoke($name, 'help', "admin/help#$name")) { if (module_invoke($name, 'help', "admin/help#$name")) {
$output .= '<li>' . t("<a href=\"%url\">$name</a>", array('%url' => url("admin/help/$name"))) . '</li>'; $output .= '<li><a href="' . url("admin/help/$name") . '">' . t($name) . '</a></li>';
} }
} }
} }
......
...@@ -67,7 +67,7 @@ function help_links_as_list() { ...@@ -67,7 +67,7 @@ function help_links_as_list() {
foreach (module_list() as $name) { foreach (module_list() as $name) {
if (module_hook($name, 'help')) { if (module_hook($name, 'help')) {
if (module_invoke($name, 'help', "admin/help#$name")) { if (module_invoke($name, 'help', "admin/help#$name")) {
$output .= '<li>' . t("<a href=\"%url\">$name</a>", array('%url' => url("admin/help/$name"))) . '</li>'; $output .= '<li><a href="' . url("admin/help/$name") . '">' . t($name) . '</a></li>';
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment