(Tutorial) Drupal Node Module Skeleton

Drupal node module skeleton

Recipe for creating a node module skeleton:

1. Create three files using the code snippets at the bottom of this post

foo.info
foo.module
foo.theme

Note: replace foo with your module name. If this is for a specific project, use project codes in the format [pc][nodetype]

2. do the following search and replace on all three files

"[pc]foo" -> [pc][nodetype]
"foo" -> [nodetype]


foo.info code:

  1. ; $Id $
  2. name = "Foo"
  3. description = "Foo posts."
  4. package =
  5. dependencies =

 

[Read more..]

Courtesy : http://www.leveltendesign.com