You are here

function botcha_recipebook_access in BOTCHA Spam Prevention 6.2

Same name and namespace in other branches
  1. 6.3 botcha.module \botcha_recipebook_access()
  2. 7.2 botcha.module \botcha_recipebook_access()
  3. 7.3 botcha.module \botcha_recipebook_access()

Check for restriction.

1 string reference to 'botcha_recipebook_access'
botcha_menu in ./botcha.module
Implements hook_menu().

File

./botcha.module, line 232

Code

function botcha_recipebook_access($recipebook) {
  $access = user_access('administer BOTCHA settings');

  // @todo Remove hardcode.
  if (in_array($recipebook->id, array(
    'forbidden_forms',
  ))) {
    $access = FALSE;
  }
  return $access;
}