Commit df7b6e69 authored by catch's avatar catch
Browse files

Issue #2031305 by jenlampton, thedavidmeister: Remove theme_more_help_link()...

Issue #2031305 by jenlampton, thedavidmeister: Remove theme_more_help_link() and replace with a #type link render array.
parent b15a9b40
......@@ -2344,17 +2344,6 @@ function theme_item_list($variables) {
return $output;
}
/**
* Returns HTML for a "more help" link.
*
* @param $variables
* An associative array containing:
* - url: The URL for the link.
*/
function theme_more_help_link($variables) {
return '<div class="more-help-link">' . l(t('More help'), $variables['url']) . '</div>';
}
/**
* Returns HTML for a feed icon.
*
......@@ -3152,9 +3141,6 @@ function drupal_common_theme() {
'item_list' => array(
'variables' => array('items' => array(), 'title' => '', 'list_type' => 'ul', 'attributes' => array()),
),
'more_help_link' => array(
'variables' => array('url' => NULL),
),
'feed_icon' => array(
'variables' => array('url' => NULL, 'title' => NULL),
),
......
......@@ -44,7 +44,19 @@ function forum_help($path, $arg) {
return $output;
case 'admin/structure/forum':
$output = '<p>' . t('Forums contain forum topics. Use containers to group related forums.') . '</p>';
$output .= theme('more_help_link', array('url' => 'admin/help/forum'));
$more_help_link = array(
'#type' => 'link',
'#href' => 'admin/help/forum',
'#title' => t('More help'),
);
$container = array(
'#theme' => 'container',
'#children' => drupal_render($more_help_link),
'#attributes' => array(
'class' => array('more-help-link'),
),
);
$output = drupal_render($container);
return $output;
case 'admin/structure/forum/add/container':
return '<p>' . t('Use containers to group related forums.') . '</p>';
......
......@@ -180,7 +180,7 @@ abbr.form-required, abbr.tabledrag-changed, abbr.ajax-changed {
}
/**
* Markup generated by theme_more_help_link().
* More help link style.
*/
.more-help-link {
text-align: right; /* LTR */
......
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