You are here

function flag_entity::uses_hook_link in Flag 7.2

Returns TRUE if the link should be displayed.

2 methods override flag_entity::uses_hook_link()
flag_comment::uses_hook_link in ./flag.inc
Returns TRUE if the link should be displayed.
flag_node::uses_hook_link in ./flag.inc
Returns TRUE if the link should be displayed.

File

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

Class

flag_entity
Base entity flag handler.

Code

function uses_hook_link($teaser) {
  if ($this->show_on_entity) {
    return TRUE;
  }
  return FALSE;
}