function semanticviews_get_token_replacements in Semantic Views 6
Helper function that returns row replacements given a row and all tokens.
1 call to semanticviews_get_token_replacements()
- template_preprocess_semanticviews_view_unformatted in ./
semanticviews.theme.inc - Display the simple view of rows one after another
File
- ./
semanticviews.module, line 34 - semanticviews.module TODO: Enter file description here.
Code
function semanticviews_get_token_replacements($row, $tokens) {
$replacements = array();
foreach ($row as $alias => $value) {
if (!empty($tokens[$alias])) {
$replacements[$tokens[$alias]] = $value;
}
}
return $replacements;
}