You are here

function antispam_access_callback in AntiSpam 6

Same name and namespace in other branches
  1. 7 antispam.module \antispam_access_callback()
1 string reference to 'antispam_access_callback'
antispam_menu in ./antispam.module
Implementation of hook_menu().

File

./antispam.module, line 593

Code

function antispam_access_callback($callback, $content_type, $object, $op) {
  if ($content_type == 'node' && !node_access('update', $object)) {
    return FALSE;
  }
  if (function_exists($callback && !antispam_is_spam_moderator(antispam_content_get_moderator_type($content_type, $object)))) {
    return FALSE;
  }

  // Is there a comment access check we need to run? If yes, then do the same as above.
  return TRUE;
}