function quiz_views_arguments in Quiz 5.2
Implementation of hook_views_arguments
File
- ./
quiz_views.module, line 408 - This include file implements views 5.x-1.x functionality on behalf of quiz.module
Code
function quiz_views_arguments() {
/*$arguments['number_of_questions'] = array(
// number of questions no longer exists in the database.
'name' => t('Quiz: Number of Questions'),
'handler' => 'views_handler_arg_noq',
'help' => t('The Number of Questions Argument allows you to filter to nodes by the number of questions in the quiz.'),
),*/
$arguments['quiz_taker_uid'] = array(
'name' => t('Quiz Result: UID for Quiz Taker'),
'handler' => 'views_handler_arg_quiz_taker_uid',
'help' => t('Filter quiz results by quiz taker.'),
'option' => array(
'#type' => 'select',
'#options' => array(
1 => t('Has taken quiz'),
0 => t('Has not taken quiz'),
),
),
);
return $arguments;
}