You are here

function flag_flag::replace_tokens in Flag 6

Same name and namespace in other branches
  1. 5 flag.inc \flag_flag::replace_tokens()
  2. 6.2 flag.inc \flag_flag::replace_tokens()
  3. 7.3 includes/flag/flag_flag.inc \flag_flag::replace_tokens()
  4. 7.2 flag.inc \flag_flag::replace_tokens()

Replaces tokens in a label. Only the 'global' token context is regognized 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 542
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);
}