You are here

function flag_node::uses_hook_link in Flag 6.2

Same name and namespace in other branches
  1. 5 flag.inc \flag_node::uses_hook_link()
  2. 6 flag.inc \flag_node::uses_hook_link()
  3. 7.2 flag.inc \flag_node::uses_hook_link()

File

./flag.inc, line 1368
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;
}