function quiz_field_extra_fields in Quiz 7.6
Same name and namespace in other branches
- 7.4 quiz.module \quiz_field_extra_fields()
- 7.5 quiz.module \quiz_field_extra_fields()
Implements hook_field_extra_fields().
File
- ./
quiz.module, line 711 - quiz.module Main file for the Quiz module.
Code
function quiz_field_extra_fields() {
$extra['node']['quiz'] = array(
'display' => array(
'take' => array(
'label' => t('Take @quiz button', array(
'@quiz' => QUIZ_NAME,
)),
'description' => t('The take button.'),
'weight' => 10,
),
'stats' => array(
'label' => t('@quiz summary', array(
'@quiz' => QUIZ_NAME,
)),
'description' => t('@quiz summary', array(
'@quiz' => QUIZ_NAME,
)),
'weight' => 9,
),
),
'form' => array(
'taking' => array(
'label' => t('Taking options'),
'description' => t('Fieldset for customizing how a @quiz is taken', array(
'@quiz' => QUIZ_NAME,
)),
'weight' => 0,
),
'quiz_availability' => array(
'label' => t('Availability options'),
'description' => t('Fieldset for customizing when a @quiz is available', array(
'@quiz' => QUIZ_NAME,
)),
'weight' => 0,
),
'summaryoptions' => array(
'label' => t('Summary options'),
'description' => t('Fieldset for customizing summaries in the @quiz reports', array(
'@quiz' => QUIZ_NAME,
)),
'weight' => 0,
),
'resultoptions' => array(
'label' => t('Result options'),
'description' => t('Fieldset for customizing result comments in @quiz reports', array(
'@quiz' => QUIZ_NAME,
)),
'weight' => 0,
),
'remember_settings' => array(
'label' => t('Remember settings'),
'description' => t('Checkbox for remembering @quiz settings', array(
'@quiz' => QUIZ_NAME,
)),
'weight' => 0,
),
'remember_global' => array(
'label' => t('Remember as global'),
'description' => t('Checkbox for remembering @quiz settings', array(
'@quiz' => QUIZ_NAME,
)),
'weight' => 0,
),
),
);
return $extra;
}