Bare bones Drupal 7 custom module

How to create a bare bones Drupal 7 custom module:

  1. Create a module folder in /sites/all/modules/custom/[modname]
  2. Create a [modname].info file. See: https://www.drupal.org/node/1075072
  3. Create a [modname].module file, and create a hook function.

Done![...]