Commit ddfec678 authored by alexpott's avatar alexpott

Issue #2003378 by dwieeb: Rename Views method get_sort_name() to getSortName().

parent 30ad3a65
......@@ -66,7 +66,10 @@ public function query($group_by = FALSE) {
$this->query->add_where(0, $condition);
}
function get_sort_name() {
/**
* {@inheritdoc}
*/
public function getSortName() {
return t('Numerical', array(), array('context' => 'Sort order'));
}
......
......@@ -594,7 +594,7 @@ public function defaultSummaryForm(&$form, &$form_state) {
'#title' => t('Sort by'),
'#default_value' => $this->options['summary']['number_of_records'],
'#options' => array(
0 => $this->get_sort_name(),
0 => $this->getSortName(),
1 => t('Number of records')
),
'#states' => array(
......@@ -1075,7 +1075,7 @@ public function getPlugin($type = 'argument_default', $name = NULL) {
* Subclasses should override this to specify what the default sort order of
* their argument is (e.g. alphabetical, numeric, date).
*/
function get_sort_name() {
public function getSortName() {
return t('Default sort', array(), array('context' => 'Sort order'));
}
......
......@@ -87,7 +87,10 @@ function get_default_argument($raw = FALSE) {
return parent::get_default_argument($raw);
}
function get_sort_name() {
/**
* {@inheritdoc}
*/
public function getSortName() {
return t('Date', array(), array('context' => 'Sort order'));
}
......
......@@ -30,7 +30,10 @@ public function adminLabel($short = FALSE) {
return $this->getField(parent::adminLabel($short));
}
function get_sort_name() {
/**
* {@inheritdoc}
*/
public function getSortName() {
return t('Numerical', array(), array('context' => 'Sort order'));
}
......
......@@ -117,7 +117,10 @@ public function query($group_by = FALSE) {
}
}
function get_sort_name() {
/**
* {@inheritdoc}
*/
public function getSortName() {
return t('Numerical', array(), array('context' => 'Sort order'));
}
......
......@@ -249,7 +249,10 @@ function summary_argument($data) {
return $value;
}
function get_sort_name() {
/**
* {@inheritdoc}
*/
public function getSortName() {
return t('Alphabetical', array(), array('context' => 'Sort order'));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment