You are here

function quiz_remove_partial_quiz_record_value in Quiz 6.4

Same name and namespace in other branches
  1. 8.4 quiz.admin.inc \quiz_remove_partial_quiz_record_value()
  2. 6.6 quiz.admin.inc \quiz_remove_partial_quiz_record_value()
  3. 6.3 quiz.admin.inc \quiz_remove_partial_quiz_record_value()
  4. 6.5 quiz.admin.inc \quiz_remove_partial_quiz_record_value()
  5. 7.6 quiz.admin.inc \quiz_remove_partial_quiz_record_value()
  6. 7 quiz.admin.inc \quiz_remove_partial_quiz_record_value()
  7. 7.4 quiz.admin.inc \quiz_remove_partial_quiz_record_value()

Helper function returning number of days as values and corresponding number of milliseconds as array keys.

Return value

array of options for when we want to delete partial quiz record values.

1 call to quiz_remove_partial_quiz_record_value()
quiz_admin_settings in ./quiz.admin.inc
This builds the main settings form for the quiz module.

File

./quiz.admin.inc, line 2545
Administrator interface for Quiz module.

Code

function quiz_remove_partial_quiz_record_value() {
  return array(
    '0' => t('Never'),
    '86400' => t('1 Day'),
    '172800' => t('2 Days'),
    '259200' => t('3 Days'),
    '345600' => t('4 Days'),
    '432000' => t('5 Days'),
    '518400' => t('6 Days'),
    '604800' => t('7 Days'),
    '691200' => t('8 Days'),
    '777600' => t('9 Days'),
    '864000' => t('10 Days'),
    '950400' => t('11 Days'),
    '1036800' => t('12 Days'),
    '1123200' => t('13 Days'),
    '1209600' => t('14 Days'),
    '1296000' => t('15 Days'),
    '1382400' => t('16 Days'),
    '1468800' => t('17 Days'),
    '1555200' => t('18 Days'),
    '1641600' => t('19 Days'),
    '1728000' => t('20 Days'),
    '1814400' => t('21 Days'),
    '1900800' => t('22 Days'),
    '1987200' => t('23 Days'),
    '2073600' => t('24 Days'),
    '2160000' => t('25 Days'),
    '2246400' => t('26 Days'),
    '2332800' => t('27 Days'),
    '2419200' => t('28 Days'),
    '2505600' => t('29 Days'),
    '2592000' => t('30 Days'),
    '3024000' => t('35 Days'),
    '3456000' => t('40 Days'),
    '3888000' => t('45 Days'),
    '4320000' => t('50 Days'),
    '4752000' => t('55 Days'),
    '5184000' => t('60 Days'),
    '5616000' => t('65 Days'),
    '6048000' => t('70 Days'),
    '6480000' => t('75 Days'),
    '6912000' => t('80 Days'),
    '7344000' => t('85 Days'),
    '7776000' => t('90 Days'),
    '8208000' => t('95 Days'),
    '8640000' => t('100 Days'),
    '9072000' => t('105 Days'),
    '9504000' => t('110 Days'),
    '9936000' => t('115 Days'),
    '10368000' => t('120 Days'),
  );
}