You are here

function flag_handler_sort_flagged::admin_summary in Flag 7.3

Same name and namespace in other branches
  1. 7.2 includes/flag_handler_sort_flagged.inc \flag_handler_sort_flagged::admin_summary()

Display whether or not the sort order is ascending or descending

Overrides views_handler_sort::admin_summary

File

includes/views/flag_handler_sort_flagged.inc, line 30
Contains the flagged content sort handler.

Class

flag_handler_sort_flagged
Handler to sort on whether objects are flagged or not.

Code

function admin_summary() {
  if (!empty($this->options['exposed'])) {
    return t('Exposed');
  }

  // Get the labels defined in sort_options().
  $sort_options = $this
    ->sort_options();
  return $sort_options[strtoupper($this->options['order'])];
}