function flag_lists_preprocess_flag in Flag Lists 6
Same name and namespace in other branches
- 7.3 flag_lists.module \flag_lists_preprocess_flag()
- 7 flag_lists.module \flag_lists_preprocess_flag()
Preprocess link title and text for the flag.tpl.php
This seems to be the only place to do this
File
- ./
flag_lists.module, line 1153 - The Flag Lists module.
Code
function flag_lists_preprocess_flag(&$variables) {
if (module_exists('token') && $variables['flag']->module == 'flag_lists') {
$variables['link_text'] = token_replace($variables['link_text'], 'flag_lists', $variables['flag']);
$variables['link_title'] = token_replace($variables['link_title'], 'flag_lists', $variables['flag']);
$variables['message_text'] = token_replace($variables['message_text'], 'flag_lists', $variables['flag']);
}
}