function views_plugin_display::get_arguments_tokens in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 7.3 plugins/views_plugin_display.inc \views_plugin_display::get_arguments_tokens()
Returns to tokens for arguments.
This function is similar to views_handler_field::get_render_tokens() but without fields tokens.
1 call to views_plugin_display::get_arguments_tokens()
- views_plugin_display::render_more_link in plugins/
views_plugin_display.inc - Render the 'more' link
File
- plugins/
views_plugin_display.inc, line 926 - Contains the base display plugin.
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
function get_arguments_tokens() {
$tokens = array();
if (!empty($this->view->build_info['substitutions'])) {
$tokens = $this->view->build_info['substitutions'];
}
$count = 0;
foreach ($this->view->display_handler
->get_handlers('argument') as $arg => $handler) {
$token = '%' . ++$count;
if (!isset($tokens[$token])) {
$tokens[$token] = '';
}
// Use strip tags as there should never be HTML in the path.
// However, we need to preserve special characters like " that
// were removed by check_plain().
$tokens['!' . $count] = isset($this->view->args[$count - 1]) ? strip_tags(html_entity_decode($this->view->args[$count - 1])) : '';
}
return $tokens;
}