//////////////////////////////////////////////////
exam.info
//////////////////////////////////////////////////
; $Id: exam.info ,v-1.0 2007/02/15 dries Exp $
name = Example
description = This is Example module.
package = Core - options
version = VERSION
version = "1.0"
project = "exam"
///////////////////////////////////////////////////
exam.module
//////////////////////////////////////////////////
<?php
// $Id: exam.module , v-1.0 2007/02/15 Exp $
/**
* @ file
* This is file module exam
*/
/**
* Implementation of hook_help()
*/
function exam_help($section) {
return $output;
}
/**
* Implementation of hook_perm()
*/
function exam_perm() {
return array('exam admin access', 'exam user access');
}
/**
* Implementation of hook_menu()
*/
function exam_menu() {
$items = NULL;
$access_admin = user_access('route admin access');
$items[] = array(
'path' => 'admin/telecom/exam',
'title' => t('exam'),
'description' => t("View, edit, and delete your site's exam"),
'callback' => 'drupal_get_form',
'callback arguments' => array('exam_admin_edit'),
'access' => $access_admin,
);
$items[] = array(
'path' => 'admin/telecom/exam/list',
'title' => t('List exam'),
'description' => t("View, edit, and delete your site's exam"),
'callback' => 'drupal_get_form',