Commit 34e099a1 authored by alexpott's avatar alexpott
Browse files

Issue #2002376 by hugo.lallo: Rename Views method build_form_style() to buildFormStyle().

parent 6c765be3
...@@ -74,8 +74,8 @@ protected function rowStyleOptions() { ...@@ -74,8 +74,8 @@ protected function rowStyleOptions() {
return $options; return $options;
} }
protected function build_form_style(array &$form, array &$form_state, $type) { protected function buildFormStyle(array &$form, array &$form_state, $type) {
parent::build_form_style($form, $form_state, $type); parent::buildFormStyle($form, $form_state, $type);
$style_form =& $form['displays'][$type]['options']['style']; $style_form =& $form['displays'][$type]['options']['style'];
// Some style plugins don't support row plugins so stop here if that's the // Some style plugins don't support row plugins so stop here if that's the
// case. // case.
......
...@@ -94,8 +94,8 @@ protected function rowStyleOptions() { ...@@ -94,8 +94,8 @@ protected function rowStyleOptions() {
* @param string $type * @param string $type
* The display ID (e.g. 'page' or 'block'). * The display ID (e.g. 'page' or 'block').
*/ */
protected function build_form_style(array &$form, array &$form_state, $type) { protected function buildFormStyle(array &$form, array &$form_state, $type) {
parent::build_form_style($form, $form_state, $type); parent::buildFormStyle($form, $form_state, $type);
$style_form =& $form['displays'][$type]['options']['style']; $style_form =& $form['displays'][$type]['options']['style'];
// Some style plugins don't support row plugins so stop here if that's the // Some style plugins don't support row plugins so stop here if that's the
// case. // case.
......
...@@ -263,7 +263,7 @@ function build_form(array $form, array &$form_state) { ...@@ -263,7 +263,7 @@ function build_form(array $form, array &$form_state) {
// AJAX. // AJAX.
views_ui_add_ajax_trigger($style_form, 'style_plugin', array('displays', 'page', 'options')); views_ui_add_ajax_trigger($style_form, 'style_plugin', array('displays', 'page', 'options'));
$this->build_form_style($form, $form_state, 'page'); $this->buildFormStyle($form, $form_state, 'page');
$form['displays']['page']['options']['items_per_page'] = array( $form['displays']['page']['options']['items_per_page'] = array(
'#title' => t('Items to display'), '#title' => t('Items to display'),
'#type' => 'number', '#type' => 'number',
...@@ -400,7 +400,7 @@ function build_form(array $form, array &$form_state) { ...@@ -400,7 +400,7 @@ function build_form(array $form, array &$form_state) {
// AJAX. // AJAX.
views_ui_add_ajax_trigger($style_form, 'style_plugin', array('displays', 'block', 'options')); views_ui_add_ajax_trigger($style_form, 'style_plugin', array('displays', 'block', 'options'));
$this->build_form_style($form, $form_state, 'block'); $this->buildFormStyle($form, $form_state, 'block');
$form['displays']['block']['options']['items_per_page'] = array( $form['displays']['block']['options']['items_per_page'] = array(
'#title' => t('Items per page'), '#title' => t('Items per page'),
'#type' => 'number', '#type' => 'number',
...@@ -505,7 +505,7 @@ public static function getSelected($form_state, $parents, $default_value, $eleme ...@@ -505,7 +505,7 @@ public static function getSelected($form_state, $parents, $default_value, $eleme
* @param string $type * @param string $type
* The display ID (e.g. 'page' or 'block'). * The display ID (e.g. 'page' or 'block').
*/ */
protected function build_form_style(array &$form, array &$form_state, $type) { protected function buildFormStyle(array &$form, array &$form_state, $type) {
$style_form =& $form['displays'][$type]['options']['style']; $style_form =& $form['displays'][$type]['options']['style'];
$style = $style_form['style_plugin']['#default_value']; $style = $style_form['style_plugin']['#default_value'];
$style_plugin = Views::pluginManager('style')->createInstance($style); $style_plugin = Views::pluginManager('style')->createInstance($style);
......
Supports Markdown
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