function flag_node::applies_to_content_object in Flag 5
Same name and namespace in other branches
- 6.2 flag.inc \flag_node::applies_to_content_object()
- 6 flag.inc \flag_node::applies_to_content_object()
File
- ./
flag.inc, line 856 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_node
- Implements a node flag.
Code
function applies_to_content_object($node) {
if ($node && in_array($node->type, $this->types)) {
return TRUE;
}
return FALSE;
}