You are here

results_export.module in Quiz 6.5

Same filename and directory in other branches
  1. 6.6 includes/results_export/results_export.module

Results Export

This module allows you to export Quiz results to portable formats.

File

includes/results_export/results_export.module
View source
<?php

/**
 * @file
 * Results Export
 *
 * This module allows you to export Quiz results to portable formats.
 */

/**
 * Implementation of hook_help().
 */
function results_export_help($path, $arg) {
  if ($path == 'admin/help#results_export') {
    return '<p>' . t('This module allows you to export Quiz results to portable formats.') . '</p>';
  }
}

/**
 * Implementation of hook_perm()
 * Valid permissions for this module
 * @return array An array of valid permissions.
 */
function results_export_perm() {
  return array(
    'export_results',
  );
}

/**
 * Implementation of hook_menu
 *
 */
function results_export_menu() {
  $items = array();
  $items['admin/quiz/results_export_teaser_view/%/%'] = array(
    'title' => t('Export Quiz Results (Teaser View)'),
    'file' => 'results_export.admin.inc',
    'page callback' => 'results_export_as_teaser_view',
    'page arguments' => array(
      3,
      4,
    ),
    'access arguments' => array(
      'export results',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/quiz/results_export_full_view/%/%'] = array(
    'title' => t('Export Quiz Results (Full view)'),
    'file' => 'results_export.admin.inc',
    'page callback' => 'results_export_as_full_view',
    'page arguments' => array(
      3,
      4,
    ),
    'access arguments' => array(
      'export results',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}

Functions

Namesort descending Description
results_export_help Implementation of hook_help().
results_export_menu Implementation of hook_menu
results_export_perm Implementation of hook_perm() Valid permissions for this module