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