You are here

function flag_flag::uses_hook_link in Flag 5

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

Returns TRUE if the flag is configured to show the flag-link using hook_link. Derived classes are likely to implement this.

File

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

Class

flag_flag
This abstract class represents a flag, or, in Views 2 terminology, "a handler".

Code

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