1 views.module _views_str_replace_recursive(&$item, $key, $args)

Callback for performing a string replacement via array_walk_recursive().


string $item: A leaf from the original array.

int $key: The key for the current array item.

array $args: Element 0 is the items to search for, element 1 is the replacements.

See also



core/modules/views/views.module, line 1927
Primarily Backdrop hooks and global API functions to manipulate views.


function _views_str_replace_recursive(&$item, $key, $args) {
  list($search, $replace) = $args;
  $item = str_replace($search, $replace, $item);