Commit 34e099a1 authored by alexpott's avatar alexpott

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

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