function flag_abuse_flag_access in Flag Abuse 6.2
Same name and namespace in other branches
- 7.2 flag_abuse.module \flag_abuse_flag_access()
Implementation of hook_flag_access().
File
- ./
flag_abuse.module, line 84
Code
function flag_abuse_flag_access($flag, $content_id, $action, $account) {
if (in_array($flag->name, array(
'abuse_node',
'abuse_comment',
'abuse_user',
))) {
// Check to see if this flag has already been reset.
if (variable_get($flag->name . '-' . $content_id, FALSE)) {
return FALSE;
}
}
}