function flag_user::type_access in Flag 7.2
Same name and namespace in other branches
- 6.2 flag.inc \flag_user::type_access()
- 7.3 includes/flag/flag_user.inc \flag_user::type_access()
File
- ./
flag.inc, line 1801 - 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;
}
}