function flag_node::replace_tokens in Flag 6
Same name and namespace in other branches
- 5 flag.inc \flag_node::replace_tokens()
- 6.2 flag.inc \flag_node::replace_tokens()
- 7.3 includes/flag/flag_node.inc \flag_node::replace_tokens()
- 7.2 flag.inc \flag_node::replace_tokens()
File
- ./
flag.inc, line 909 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_node
- Implements a node flag.
Code
function replace_tokens($label, $contexts, $content_id) {
if ($content_id && ($node = $this
->fetch_content($content_id))) {
$contexts['node'] = $node;
}
return parent::replace_tokens($label, $contexts, $content_id);
}