You are here

function botcha_form_access in BOTCHA Spam Prevention 6.2

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

Check for restriction.

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

File

./botcha.module, line 213

Code

function botcha_form_access($botcha_form) {
  $access = user_access('administer BOTCHA settings');

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