Implementation of hooks in Drupal

In your directory /sites/all/, you have to create 2 sub-directories called “themes” and “modules” where your custom themes and modules are located. What “hooks” in Drupal is all about? They allow your custom-built modules to interact with the Drupal core.  A hook is a function that is named foo_hookname(), where “foo” is the name of your custom-built module (whose filename is foo.module) and “hookname” is the name of the hook. Each hook has a defined set of parameters and a specified result type. To extend…

Continue reading »

How do I learn to build a module in Drupal

Today I have a project from AppraisalWorld that I need to build a module in Drupal. I have known this Drupal CMS since I learned the Joomla Environment but I didn’t have a chance to build many complex modules. So this is an opportunity for me to learn how to build a complex module for Drupal environment. First, I go to www.drupal.org and read how Drupal works after I install. Then I watched some videos that teach me why and how to use Drupal. Of…

Continue reading »