Drupal's hook system is without a doubt the key to its powerful architecture. The hook concept creates Drupal's modular functionality. From Drupal's API Reference Guide:
"To extend Drupal, a module need simply implement a hook. When Drupal wishes to allow intervention from modules, it determines which modules implement a hook and call that hook in all enabled modules that implement it."
This course will begin with an overall explanation of Drupal's hook conept and how it works. From there we will discuss in detail some of the most common hooks (menu, formalter, nodeapi) and explain with examples how to use these in your own custom modules. Following this, an explanation of how to create your own hooks will be presented.
Day 1:
- the "hook" concept
- the use of form_alter and nodeapi and how to build a very simple "tweaks" module to make minor modifications to existing module functions
Day 2:
- details of some of the more common (and tricky) hooks such as the menu hook
- using the menu hook to add an AJAX application to your site
- how to create your own hooks to allow other modules to extend the functionality of your module
This course consists of 8 hours of in class training spread across 2 days (4 hours each day).
External classes are provided on a interest driven basis. If you are interested in this course; please signup below and we will get in touch with you when the next available session is being offered. For on-site training, please use the signup form below and we will get in touch with you within the next couple of days to make scheduling arrangements.
