function quiz_access_multi_or in Quiz 7
Same name and namespace in other branches
- 8.4 quiz.module \quiz_access_multi_or()
- 6.4 quiz.module \quiz_access_multi_or()
- 7.6 quiz.module \quiz_access_multi_or()
- 7.4 quiz.module \quiz_access_multi_or()
- 7.5 quiz.module \quiz_access_multi_or()
Helper function to check if the user has any of a given list of permissions.
Parameters
args: Any number of permissions.
Return value
TRUE if the user has access to any of the arguments given.
1 call to quiz_access_multi_or()
- QuizQuestion::getNodeForm in question_types/
quiz_question/ quiz_question.core.inc - Returns a node form to quiz_question_form
3 string references to 'quiz_access_multi_or'
- long_answer_menu in question_types/
long_answer/ long_answer.module - Implements hook_menu().
- quiz_menu in ./
quiz.module - Implements hook_menu().
- short_answer_menu in question_types/
short_answer/ short_answer.module - Implements hook_menu().
File
- ./
quiz.module, line 252 - Quiz Module
Code
function quiz_access_multi_or() {
$perms = func_get_args();
foreach ($perms as $perm) {
if (user_access($perm)) {
return TRUE;
}
}
}