function _trash_flag_flag_access in Trash Flag 7
Future: Implements hook_flag_access().
As soon as the new hook_flag_access_mulitpe() is thoroughly tested, we can get rid of duplicate code and use this instead.
File
- ./
trash_flag.module, line 75
Code
function _trash_flag_flag_access($flag, $content_id, $action, $account) {
$result = trash_flag_flag_access_multiple($flag, array(
$content_id => $action,
), $account);
return !empty($result[$content_id]);
}