You are here

function flag_user::applies_to_content_object in Flag 6

Same name and namespace in other branches
  1. 5 flag.inc \flag_user::applies_to_content_object()
  2. 6.2 flag.inc \flag_user::applies_to_content_object()

File

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

Class

flag_user
Implements a user flag.

Code

function applies_to_content_object($user) {

  // This user flag doesn't currently support subtypes so we return TRUE for
  // any user.
  if ($user) {
    return TRUE;
  }
  return FALSE;
}