You are here

function quiz_feedback_page in Quiz 7.5

Admin page for feedback settings.

1 string reference to 'quiz_feedback_page'
quiz_menu in ./quiz.module
Implements hook_menu().

File

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

Code

function quiz_feedback_page() {
  $rows = array();
  $header = array(
    t('Time'),
    t('Description'),
    t('Conditions'),
  );
  foreach (quiz_get_feedback_times() as $key => $time) {
    $conditions = l(t('Conditions'), 'admin/quiz/feedback/manage/quiz_feedback_' . $key);
    $rows[] = array(
      $time['name'],
      $time['description'],
      $conditions,
    );
  }
  return theme('table', array(
    'caption' => t('Quiz feedback conditions'),
    'rows' => $rows,
    'header' => $header,
  ));
}