You are here

matching.module in Quiz 5

Same filename and directory in other branches
  1. 5.2 matching.module
  2. 6.2 matching.module

Matching question type for quiz module

Allows the creation of matching questions, which associate one term with another

File

matching.module
View source
<?php

/**
 * @file
 * Matching question type for quiz module
 *
 * Allows the creation of matching questions, which associate one term 
 * with another
 */

/**
 * Implementation of hook_node().
 */
function matching_node_info() {
  return array(
    'matching' => array(
      'name' => t('matching'),
      'base' => 'matching',
    ),
  );
}

/**
 * Implementation of hook_help().
 */
function matching_help($section) {
  switch ($section) {
    case 'admin/modules#description':
      return t('Matching question type for quiz module.');
    case 'node/add#matching':
      return t('A question type for the quiz module: allows you to create matching type questions, which connect terms with one another.');
    default:
      break;
  }
}

// Temporary holding place for list_questions hook
function matching_list_questions() {
  return array();
}

Functions

Namesort descending Description
matching_help Implementation of hook_help().
matching_list_questions
matching_node_info Implementation of hook_node().