function legal_access in Legal 6.8
Same name and namespace in other branches
- 5 legal.module \legal_access()
- 6.7 legal.module \legal_access()
- 7.2 legal.module \legal_access()
- 7 legal.module \legal_access()
Implementation of hook_access().
File
- ./
legal.module, line 39 - Displays Terms & Conditions, and makes sure they are accepted before registration is accepted.
Code
function legal_access($op, $node, $account) {
return $op == 'view' && (user_access('view Terms and Conditions') || user_access('administer Terms and Conditions'));
}