Tuesday, February 10, 2009

Drupal : Hello World Module

Some developers are like me... impatient. I've got to learn something new, like Drupal, I want some book, tutorial, or colleague to give it to me quickly, logically and in a format I understand.

I'm a NetBeans user and do my PHP work in NetBeans 6.5.

So start me with 'Hello World' and let's take it from there.

Step 1 : Create your <module> directory.


Step 2 : Create your <module>.info file.


Step 3 : Create your <module>.module file.


NOTE : For more information about the use of the 'hook' hook_block() go here.

Step 4 : Enable <module> in Modules list.


Step 5 : Position <module> Block in Block list.


Step 6 : Block positioned saved the <module> Block is now visible.


Step 7 : After logging out the <module> Block is now shown as visitors would see it.


I'll be adding more tutorials as I learn Drupal myself...

Matt

0 comments: