function quiz_take_access in Quiz 6.4
Same name and namespace in other branches
- 8.4 quiz.module \quiz_take_access()
- 7.6 quiz.module \quiz_take_access()
- 7 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 - Implementation of hook_menu().
File
- ./
quiz.module, line 915 - Quiz Module
Code
function quiz_take_access($node) {
if ($node->type != 'quiz') {
return FALSE;
}
return node_access('view', $node) && quiz_availability($node) === TRUE;
}