diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php index 4a41d0a..d552932 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php @@ -96,7 +96,7 @@ function render($empty = FALSE) { if (!$empty || !empty($this->options['empty'])) { $entity_id = $this->options['entity_id']; if ($this->options['tokenize']) { - $entity_id = $this->view->style_plugin->tokenize_value($entity_id, 0); + $entity_id = $this->view->style_plugin->tokenizeValue($entity_id, 0); } $entity_id = $this->globalTokenReplace($entity_id); if ($entity = entity_load($this->entityType, $entity_id)) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php index 4c926ad..3cda4b2 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php @@ -67,7 +67,7 @@ function render($empty = FALSE) { function render_textarea($value, $format) { if ($value) { if ($this->options['tokenize']) { - $value = $this->view->style_plugin->tokenize_value($value, 0); + $value = $this->view->style_plugin->tokenizeValue($value, 0); } return check_markup($this->globalTokenReplace($value), $format, '', FALSE); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php index 002537a..08b8061 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php @@ -61,7 +61,7 @@ function render($empty = FALSE) { function render_textarea($value) { if ($value) { if ($this->options['tokenize']) { - $value = $this->view->style_plugin->tokenize_value($value, 0); + $value = $this->view->style_plugin->tokenizeValue($value, 0); } return $this->sanitizeValue($this->globalTokenReplace($value), 'xss_admin'); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php index bc8dfff..2a96d8c 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php @@ -290,7 +290,7 @@ function get_elements() { function element_classes($row_index = NULL) { $classes = explode(' ', $this->options['element_class']); foreach ($classes as &$class) { - $class = $this->tokenize_value($class, $row_index); + $class = $this->tokenizeValue($class, $row_index); $class = drupal_clean_css_identifier($class); } return implode(' ', $classes); @@ -302,7 +302,7 @@ function element_classes($row_index = NULL) { * This function actually figures out which field was last and uses its * tokens so they will all be available. */ - function tokenize_value($value, $row_index = NULL) { + function tokenizeValue($value, $row_index = NULL) { if (strpos($value, '[') !== FALSE || strpos($value, '!') !== FALSE || strpos($value, '%') !== FALSE) { $fake_item = array( 'alter_text' => TRUE, @@ -340,7 +340,7 @@ function tokenize_value($value, $row_index = NULL) { function element_label_classes($row_index = NULL) { $classes = explode(' ', $this->options['element_label_class']); foreach ($classes as &$class) { - $class = $this->tokenize_value($class, $row_index); + $class = $this->tokenizeValue($class, $row_index); $class = drupal_clean_css_identifier($class); } return implode(' ', $classes); @@ -352,7 +352,7 @@ function element_label_classes($row_index = NULL) { function element_wrapper_classes($row_index = NULL) { $classes = explode(' ', $this->options['element_wrapper_class']); foreach ($classes as &$class) { - $class = $this->tokenize_value($class, $row_index); + $class = $this->tokenizeValue($class, $row_index); $class = drupal_clean_css_identifier($class); } return implode(' ', $classes); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php index 7fb9822..af0aeae 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php @@ -102,7 +102,7 @@ function get_description() { $description = $this->options['description']; // Allow substitutions from the first row. - $description = $this->tokenize_value($description, 0); + $description = $this->tokenizeValue($description, 0); return $description; } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php index 2fe7cfa..7f5fd67 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php @@ -174,7 +174,7 @@ function get_row_class($row_index) { if ($this->usesRowClass()) { $class = $this->options['row_class']; if ($this->usesFields() && $this->view->field) { - $class = strip_tags($this->tokenize_value($class, $row_index)); + $class = strip_tags($this->tokenizeValue($class, $row_index)); } $classes = explode(' ', $class); @@ -188,7 +188,7 @@ function get_row_class($row_index) { /** * Take a value and apply token replacement logic to it. */ - function tokenize_value($value, $row_index) { + function tokenizeValue($value, $row_index) { if (strpos($value, '[') !== FALSE || strpos($value, '!') !== FALSE || strpos($value, '%') !== FALSE) { $fake_item = array( 'alter_text' => TRUE, diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index a8a8dd2..9bd5202 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -1555,7 +1555,7 @@ public function getTitle() { // Allow substitutions from the first row. if ($this->initStyle()) { - $title = $this->style_plugin->tokenize_value($title, 0); + $title = $this->style_plugin->tokenizeValue($title, 0); } return $title; }