function theme_tablesort_indicator

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 theme.inc theme_tablesort_indicator($variables)
cle7 theme.inc theme_tablesort_indicator($variables)
elmsmedia7 theme.inc theme_tablesort_indicator($variables)
icor7 theme.inc theme_tablesort_indicator($variables)
meedjum_blog7 theme.inc theme_tablesort_indicator($variables)
mooc7 theme.inc theme_tablesort_indicator($variables)

Returns HTML for a sort icon.

Parameters

$variables: An associative array containing:

  • style: Set to either 'asc' or 'desc', this determines which icon to show.

Related topics

3 theme calls to theme_tablesort_indicator()
tablesort_header in includes/tablesort.inc
Formats a column header.
template_preprocess_views_view_table in sites/all/modules/ulmus/views/theme/theme.inc
Display a view as a table style.
views_ui::tablesort_link in sites/all/modules/ulmus/views/plugins/export_ui/views_ui.class.php
4 string references to the theme hook from theme_tablesort_indicator()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

drupal_common_theme in includes/common.inc
Provides theme registration for themes across .inc files.
tablesort_header in includes/tablesort.inc
Formats a column header.
template_preprocess_views_view_table in sites/all/modules/ulmus/views/theme/theme.inc
Display a view as a table style.
views_ui::tablesort_link in sites/all/modules/ulmus/views/plugins/export_ui/views_ui.class.php

File

includes/theme.inc, line 2037
The theme system, which controls the output of Drupal.

Code

function theme_tablesort_indicator($variables) {
  if ($variables['style'] == "asc") {
    return theme('image', array('path' => 'misc/arrow-asc.png', 'width' => 13, 'height' => 13, 'alt' => t('sort ascending'), 'title' => t('sort ascending')));
  }
  else {
    return theme('image', array('path' => 'misc/arrow-desc.png', 'width' => 13, 'height' => 13, 'alt' => t('sort descending'), 'title' => t('sort descending')));
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.