You are here

function flag_user::type_access in Flag 6.2

Same name and namespace in other branches
  1. 7.3 includes/flag/flag_user.inc \flag_user::type_access()
  2. 7.2 flag.inc \flag_user::type_access()

File

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

Class

flag_user
Implements a user flag.

Code

function type_access($content_id, $action, $account) {

  // Prevent users from flagging themselves.
  if ($this->access_uid == 'others' && $content_id == $account->uid) {
    return FALSE;
  }
}