Commit 9ae13bc8 authored by alexpott's avatar alexpott

Issue #2003310 by Dan Reinders, phenaproxima: Rename Views method...

Issue #2003310 by Dan Reinders, phenaproxima: Rename Views method sanitize_columns() to sanitizeColumns().
parent 93dadb92
......@@ -185,7 +185,7 @@ function build_sort_post() {
* @return array
* An array of all the sanitized columns.
*/
function sanitize_columns($columns, $fields = NULL) {
public function sanitizeColumns($columns, $fields = NULL) {
$sanitized = array();
if ($fields === NULL) {
$fields = $this->displayHandler->getOption('fields');
......@@ -254,7 +254,7 @@ public function buildOptionsForm(&$form, &$form_state) {
// will have to register your theme handlers if you do stuff like this.
$form['#theme'] = 'views_ui_style_plugin_table';
$columns = $this->sanitize_columns($this->options['columns']);
$columns = $this->sanitizeColumns($this->options['columns']);
// Create an array of allowed columns from the data we know:
$field_names = $this->displayHandler->getFieldLabels();
......
......@@ -551,7 +551,7 @@ function template_preprocess_views_view_table(&$vars) {
$row_class_special = isset($options['row_class_special']) ? $options['row_class_special'] : TRUE;
$fields = &$view->field;
$columns = $handler->sanitize_columns($options['columns'], $fields);
$columns = $handler->sanitizeColumns($options['columns'], $fields);
$active = !empty($handler->active) ? $handler->active : '';
$order = !empty($handler->order) ? $handler->order : 'asc';
......
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