function botcha_recipebook_access in BOTCHA Spam Prevention 6.3
Same name and namespace in other branches
- 6.2 botcha.module \botcha_recipebook_access()
- 7.2 botcha.module \botcha_recipebook_access()
- 7.3 botcha.module \botcha_recipebook_access()
Check for restriction.
1 string reference to 'botcha_recipebook_access'
- Botcha::menu in controller/
application/ botcha.application.controller.inc - Implementation of hook_menu().
File
- ./
botcha.module, line 461 - BOTCHA - Spam Prevention It modifies forms by adding various botcha's.
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;
}