(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:- ; $Id $
- name = "Foo"
- description = "Foo posts."
- package =
- dependencies =
Courtesy : http://www.leveltendesign.com
- guru's blog
- Login to post comments
![Drupal-6-Book-[Building Powerful and Robust Websites with Drupal 6].jpg](http://www.drupalranch.com/images/Drupal-6-Book-[Building%20Powerful%20and%20Robust%20Websites%20with%20Drupal%206].jpg)