You are here

function _menu_views_tokenize_callback in Menu Views 7.2

Same name and namespace in other branches
  1. 8.3 menu_views.module \_menu_views_tokenize_callback()

Callback for human-readable token value replacements.

1 string reference to '_menu_views_tokenize_callback'
_menu_views_tokenize in ./menu_views.module
Helper function to tokenize a menu item view arguments and settings. Alters the menu view item array and the original values are replaced.

File

./menu_views.module, line 664
Module to allow Views to be attached as menu items.

Code

function _menu_views_tokenize_callback(&$replacements, $data, $options) {
  foreach ($replacements as $token => $value) {
    if (isset($options['urlencode']) && $options['urlencode']) {
      $replacements[$token] = urlencode($value);
    }
  }
}