You are here

function services_client_ui::list_sort_options in Services Client 7.2

Same name and namespace in other branches
  1. 7 plugins/export_ui/services_client_ui.class.php \services_client_ui::list_sort_options()

Provide a list of sort options.

Override this if you wish to provide more or change how these work. The actual handling of the sorting will happen in build_row().

Overrides ctools_export_ui::list_sort_options

File

plugins/export_ui/services_client_ui.class.php, line 93

Class

services_client_ui

Code

function list_sort_options() {
  if (!empty($this->plugin['export']['title'])) {
    $options = array(
      'disabled' => t('Enabled, title'),
      $this->plugin['export']['title'] => t('Title'),
    );
  }
  else {
    $options = array(
      'disabled' => t('Enabled, name'),
    );
  }
  $options += array(
    'name' => t('Name'),
    'storage' => t('Storage'),
    'connection' => t('Connection'),
  );
  return $options;
}