You are here

function flag_rules_get_comment_content in Flag 6

Same name and namespace in other branches
  1. 6.2 includes/flag.rules.inc \flag_rules_get_comment_content()
1 string reference to 'flag_rules_get_comment_content'
flag_comment::rules_get_event_arguments_definition in ./flag.inc

File

includes/flag.rules.inc, line 135
flag.rules.inc Rules integration for the Flag module.

Code

function flag_rules_get_comment_content($flag, $content_id, $account) {
  $comment = $flag
    ->fetch_content($content_id);
  return node_load($comment->nid);
}