';
}
return $output;
}
/**
* Override of theme_tablesort_indicator().
*
* Use our own image versions, so they show up as black and not gray on gray.
*/
function seven_tablesort_indicator($style) {
$theme_path = drupal_get_path('theme', 'seven');
if ($style == "asc") {
return theme('image', array('path' => $theme_path . '/images/arrow-asc.png', 'alt' => t('sort icon'), 'title' => t('sort ascending')));
}
else {
return theme('image', array('path' => $theme_path . '/images/arrow-desc.png', 'alt' => t('sort icon'), 'title' => t('sort descending')));
}
}
/**
* Override of theme_fieldset().
*
* Add span to legend tag, so we can style it to be inside the fieldset.
*/
function seven_fieldset($element) {
if (!empty($element['#collapsible'])) {
drupal_add_js('misc/collapse.js');
if (!isset($element['#attributes']['class'])) {
$element['#attributes']['class'] = 'collapsible';
} else {
$element['#attributes']['class'] .= ' collapsible';
}
if (!empty($element['#collapsed'])) {
$element['#attributes']['class'] .= ' collapsed';
}
}
$element['#attributes']['id'] = $element['#id'];
return '\n";
}