summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-15 03:04:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-15 03:04:38 +0000
commit0afbd86d32a94c3b11c6cbe4204e66d8cfa1da3a (patch)
tree6b7c42cae6452c155767fcb86c3df3272d7b20a1 /modules
parent437ba36d1902095f26767346068f8d677d6833a9 (diff)
downloadbrdo-0afbd86d32a94c3b11c6cbe4204e66d8cfa1da3a.tar.gz
brdo-0afbd86d32a94c3b11c6cbe4204e66d8cfa1da3a.tar.bz2
#984374 by zeta ζ: Remove duplicate code in toolbar module.
Diffstat (limited to 'modules')
-rw-r--r--modules/toolbar/toolbar.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module
index 8c8916bfe..a05bbe2f3 100644
--- a/modules/toolbar/toolbar.module
+++ b/modules/toolbar/toolbar.module
@@ -91,13 +91,12 @@ function toolbar_toggle_page() {
function theme_toolbar_toggle($variables) {
if ($variables['collapsed']) {
$toggle_text = t('Show shortcuts');
- return '<a href="' . url('toolbar/toggle', array('query' => drupal_get_destination())) . '" title="' . $toggle_text . '"' . drupal_attributes($variables['attributes']) . '>' . $toggle_text . '</a>';
}
else {
$toggle_text = t('Hide shortcuts');
$variables['attributes']['class'][] = 'toggle-active';
- return '<a href="' . url('toolbar/toggle', array('query' => drupal_get_destination())) . '" title="' . $toggle_text . '"' . drupal_attributes($variables['attributes']) . '>' . $toggle_text . '</a>';
}
+ return '<a href="' . url('toolbar/toggle', array('query' => drupal_get_destination())) . '" title="' . $toggle_text . '"' . drupal_attributes($variables['attributes']) . '>' . $toggle_text . '</a>';
}
/**