function quiz_access_multi_or in Quiz 7.6
Same name and namespace in other branches
- 8.4 quiz.module \quiz_access_multi_or()
- 6.4 quiz.module \quiz_access_multi_or()
- 7 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.
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 276 - quiz.module Main file for the Quiz module.
Code
function quiz_access_multi_or() {
$perms = func_get_args();
foreach ($perms as $perm) {
if (user_access($perm)) {
return TRUE;
}
}
}