You are here

function short_answer_field_extra_fields in Quiz 7.6

Same name and namespace in other branches
  1. 8.4 question_types/short_answer/short_answer.module \short_answer_field_extra_fields()
  2. 7.4 question_types/short_answer/short_answer.module \short_answer_field_extra_fields()
  3. 7.5 question_types/short_answer/short_answer.module \short_answer_field_extra_fields()

Implements hook_field_extra_fields().

File

question_types/short_answer/short_answer.module, line 241
The main file for short_answer.

Code

function short_answer_field_extra_fields() {
  $extra['node']['short_answer'] = array(
    'form' => array(
      'answer' => array(
        'label' => t('Answer'),
        'description' => t('Provide the answer and the method by which the answer will be evaluated.'),
        'weight' => -4,
      ),
    ),
  );
  return $extra;
}