You are here

function _views_get_sorts in Views (for Drupal 7) 5

Gets the sort information; if it doesn't exist, call the function that constructs all that.

4 calls to _views_get_sorts()
views_edit_view in ./views_ui.module
Display all the guts of a view in a form for editing.
views_ui_add_sort in ./views_ui.module
Add all the info for a single sort into the form.
_views_ui_help_add in ./views_ui.module
_views_view_build_sorts in ./views_query.inc

File

./views_cache.inc, line 181

Code

function _views_get_sorts($titles = false) {
  $table_data = _views_get_tables(true);
  return $titles ? $table_data['sorts']['titles'] : $table_data['sorts']['base'];
}