function quiz_take_access in Quiz 7
Same name and namespace in other branches
- 8.4 quiz.module \quiz_take_access()
- 6.4 quiz.module \quiz_take_access()
- 7.6 quiz.module \quiz_take_access()
- 7.4 quiz.module \quiz_take_access()
- 7.5 quiz.module \quiz_take_access()
Does the current user have access to take the quiz?
Parameters
$node: The quiz node
1 string reference to 'quiz_take_access'
- quiz_menu in ./
quiz.module - Implements hook_menu().
File
- ./
quiz.module, line 988 - Quiz Module
Code
function quiz_take_access($node) {
if ($node->type != 'quiz') {
return FALSE;
}
return node_access('view', $node) && user_access('access quiz') && quiz_availability($node) === TRUE;
}