Module Development

Skeleton Framework

.INFO file

name = MYMODULE
description = MYDESCRIPTION
package = MYPACKAGE
core = 7.x
files[] = MYMODULE.test
; Information added by Drupal.org packaging script on 2013-12-30
version = "7.x-1.x-dev"
core = "7.x"
project = "mymodule"
datestamp = "1388386437"

.MODULE FILE

<?php
/**
* @file
* Module file for MYMODULE.
*/
/**
* @defgroup MYMODULE
* @ingroup mypackage
* @{
* Description here.
*
* Comments here
*
*/
YOUR HOOKS/FUNCTIONS HERE

.INSTALL FILE

<?php
/**
* @file
* Install, update and uninstall functions for the MYMODULE module.
*/
/**
* Implements hook_uninstall().
*
* @ingroup MYMODULE
*/
function MYMODULE_uninstall() {
// Your code here
}

.INC file (optional)

<?php
/**
* @file
* Description
*
* Comments
* Comments
  * @see http://drupal.org/XXXXXX
*/
/**
* Comments.
*
* @see FUNCTIONSHERE()
*
* @ingroup MYMODULE
*/

.TEST file (optional)

<?php
/**
* @file
* Test file for form_example module.
*/