You are here

function long_answer_field_extra_fields in Quiz 7.5

Same name and namespace in other branches
  1. 8.4 question_types/long_answer/long_answer.module \long_answer_field_extra_fields()
  2. 7.6 question_types/long_answer/long_answer.module \long_answer_field_extra_fields()
  3. 7.4 question_types/long_answer/long_answer.module \long_answer_field_extra_fields()

Implements hook_field_extra_fields().

File

question_types/long_answer/long_answer.module, line 144
Long_answer question type for the Quiz module.

Code

function long_answer_field_extra_fields() {
  $extra = array();
  $extra['node']['long_answer'] = array(
    'form' => array(
      'rubric' => array(
        'label' => t('Rubric'),
        'description' => t('Specify the criteria for grading the response'),
        'weight' => -4,
      ),
    ),
  );
  return $extra;
}