function flag_entity::replace_tokens in Flag 7.2
Same name and namespace in other branches
- 7.3 includes/flag/flag_entity.inc \flag_entity::replace_tokens()
Replaces tokens.
2 calls to flag_entity::replace_tokens()
- flag_comment::replace_tokens in ./
flag.inc - Replaces tokens.
- flag_node::replace_tokens in ./
flag.inc - Replaces tokens.
2 methods override flag_entity::replace_tokens()
- flag_comment::replace_tokens in ./
flag.inc - Replaces tokens.
- flag_node::replace_tokens in ./
flag.inc - Replaces tokens.
File
- ./
flag.inc, line 1443 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_entity
- Base entity flag handler.
Code
function replace_tokens($label, $contexts, $options, $content_id) {
if ($content_id && ($entity = $this
->fetch_content($content_id))) {
$contexts[$this->content_type] = $entity;
}
return parent::replace_tokens($label, $contexts, $options, $content_id);
}