Commit df133684 authored by alexpott's avatar alexpott

Issue #2003484 by sillygwailo: Rename Views method...

Issue #2003484 by sillygwailo: Rename Views method get_token_values_recursive() to getTokenValuesRecursive().
parent c3b21afe
......@@ -1476,7 +1476,7 @@ public function getRenderTokens($item) {
}
// Get flattened set of tokens for any array depth in $_GET parameters.
$tokens += $this->get_token_values_recursive(drupal_container()->get('request')->query->all());
$tokens += $this->getTokenValuesRecursive(drupal_container()->get('request')->query->all());
// Now add replacements for our fields.
foreach ($this->view->display_handler->getHandlers('field') as $field => $handler) {
......@@ -1537,7 +1537,7 @@ public function getRenderTokens($item) {
* @return
* An array of available tokens, with nested keys representative of the array structure.
*/
function get_token_values_recursive(array $array, array $parent_keys = array()) {
protected function getTokenValuesRecursive(array $array, array $parent_keys = array()) {
$tokens = array();
foreach ($array as $param => $val) {
......@@ -1547,7 +1547,7 @@ function get_token_values_recursive(array $array, array $parent_keys = array())
$child_parent_keys = $parent_keys;
$child_parent_keys[] = $param;
// Get the child tokens.
$child_tokens = $this->get_token_values_recursive($val, $child_parent_keys);
$child_tokens = $this->getTokenValuesRecursive($val, $child_parent_keys);
// Add them to the current tokens array.
$tokens += $child_tokens;
}
......
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