Commit 89f15d22 authored by alexpott's avatar alexpott

Issue #2002946 by mari3.14, malcomio: Rename Views method lgtm() to useStringGroupBy().

parent e63a3096
...@@ -916,7 +916,7 @@ public function getHandlers($type) { ...@@ -916,7 +916,7 @@ public function getHandlers($type) {
* *
* @param bool $groupable_only * @param bool $groupable_only
* (optional) TRUE to only return an array of field labels from handlers * (optional) TRUE to only return an array of field labels from handlers
* that support the use_string_group_by method, defaults to FALSE. * that support the useStringGroupBy method, defaults to FALSE.
* *
* @return array * @return array
* An array of applicable field options, keyed by ID. * An array of applicable field options, keyed by ID.
...@@ -928,7 +928,7 @@ public function getFieldLabels($groupable_only = FALSE) { ...@@ -928,7 +928,7 @@ public function getFieldLabels($groupable_only = FALSE) {
} }
foreach ($this->getHandlers('field') as $id => $handler) { foreach ($this->getHandlers('field') as $id => $handler) {
if ($groupable_only && !$handler->use_string_group_by()) { if ($groupable_only && !$handler->useStringGroupBy()) {
// Continue to next handler if it's not groupable. // Continue to next handler if it's not groupable.
continue; continue;
} }
......
...@@ -402,7 +402,7 @@ function get_value($values, $field = NULL) { ...@@ -402,7 +402,7 @@ function get_value($values, $field = NULL) {
* @return bool * @return bool
* TRUE if this field handler is groupable, otherwise FALSE. * TRUE if this field handler is groupable, otherwise FALSE.
*/ */
function use_string_group_by() { public function useStringGroupBy() {
return TRUE; return TRUE;
} }
...@@ -1672,3 +1672,4 @@ public static function trimText($alter, $value) { ...@@ -1672,3 +1672,4 @@ public static function trimText($alter, $value) {
/** /**
* @} * @}
*/ */
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