You are here

function flag_comment::applies_to_content_object in Flag 6

Same name and namespace in other branches
  1. 5 flag.inc \flag_comment::applies_to_content_object()
  2. 6.2 flag.inc \flag_comment::applies_to_content_object()

File

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

Class

flag_comment
Implements a comment flag.

Code

function applies_to_content_object($comment) {
  if ($comment && ($node = node_load($comment->nid)) && in_array($node->type, $this->types)) {
    return TRUE;
  }
  return FALSE;
}