function flag_flag::replace_tokens in Flag 6.2
Same name and namespace in other branches
- 5 flag.inc \flag_flag::replace_tokens()
- 6 flag.inc \flag_flag::replace_tokens()
- 7.3 includes/flag/flag_flag.inc \flag_flag::replace_tokens()
- 7.2 flag.inc \flag_flag::replace_tokens()
Replaces tokens in a label. Only the 'global' token context is recognized by default, so derived classes should override this method to add all token contexts they understand.
1 call to flag_flag::replace_tokens()
- flag_flag::get_label in ./
flag.inc - Processes a flag label for display. This means language translation and token replacements.
File
- ./
flag.inc, line 910 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_flag
- This abstract class represents a flag, or, in Views 2 terminology, "a handler".
Code
function replace_tokens($label, $contexts, $content_id) {
return token_replace_multiple($label, $contexts);
}