You are here

function flag_node::flag in Flag 5

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

File

./flag.inc, line 892
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_node
Implements a node flag.

Code

function flag($action, $content_id, $account = NULL, $skip_permission_check = FALSE) {
  $content_id = $this
    ->get_translation_id($content_id);
  return parent::flag($action, $content_id, $account, $skip_permission_check);
}