Skip to content
Snippets Groups Projects
Commit 949f67b3 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2003412 by ptocheia, lajical: Rename Views method offset_exposed() to isOffsetExposed().

parent 0bfe6230
No related branches found
No related tags found
Loading
......@@ -253,7 +253,7 @@ protected function itemsPerPageExposed() {
return FALSE;
}
function offset_exposed() {
protected function isOffsetExposed() {
return FALSE;
}
......
......@@ -220,7 +220,7 @@ public function query() {
$this->options['items_per_page'] = 0;
}
}
if ($this->offset_exposed()) {
if ($this->isOffsetExposed()) {
$query = drupal_container()->get('request')->query;
$offset = $query->get('offset');
if (isset($offset) && $offset >= 0) {
......@@ -324,14 +324,14 @@ public function updatePageInfo() {
}
public function usesExposed() {
return $this->itemsPerPageExposed() || $this->offset_exposed();
return $this->itemsPerPageExposed() || $this->isOffsetExposed();
}
protected function itemsPerPageExposed() {
return !empty($this->options['expose']['items_per_page']);
}
function offset_exposed() {
protected function isOffsetExposed() {
return !empty($this->options['expose']['offset']);
}
......@@ -355,7 +355,7 @@ public function exposedFormAlter(&$form, &$form_state) {
}
}
if ($this->offset_exposed()) {
if ($this->isOffsetExposed()) {
$form['offset'] = array(
'#type' => 'textfield',
'#size' => 10,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment