public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/pages/page-quiz-modify.php
/**
 * Fetch a list of the attempts that a user is allowed for completing a quiz.
 *
 * @since 1.0.0
 *
 * @return array The list of attempts as Counts => Names.
 *
 * @return array $attemptList The attempt list array.
 */
Fetch a list of the attempts that a user is allowed for completing a quiz.

@return array The list of attempts as Counts => Names.

@return array $attemptList The attempt list array.
Fetch a list of the attempts that a user is allowed for completing a quiz . @return array The list of attempts as Counts = > Names . @return array $attemptList The attempt list array .
function WPCW_quizzes_getAttemptList() {
	$attemptList = array(
		'-1' => __( 'Unlimited Attempts', 'wp-courseware' ),
		'1'  => __( '1 Attempt', 'wp-courseware' ),
	);
	for ( $i = 2; $i <= 30; $i ++ ) {
		$attemptList[ $i ] = sprintf( __( '%d Attempts', 'wp-courseware' ), $i );
	}
	return $attemptList;
}
function WPCW_quizzes_getAttemptList ( ) { $ attemptList = array ( '-1' => __ ( 'Unlimited Attempts' , 'wp-courseware' ) , '1' => __ ( '1 Attempt' , 'wp-courseware' ) , ) ; for ( $ i = 2 ; $ i <= 30 ; $ i ++ ) { $ attemptList [ $ i ] = sprintf ( __ ( '%d Attempts' , 'wp-courseware' ) , $ i ) ; } return $ attemptList ; }
Fetch a list of the attempts that a user is allowed for completing a quiz.
Fetch a list of the attempts that a user is allowed for completing a quiz .