Hi Guys,
I was doing a review on the hooks provided by drupal 5 and drupal 6. Most of the hooks are same, except a few which i tried to put down in a document. I needed this to be able to port my custom modules to drupal 6 [i'm still using drupal 5]. So, I thought why not make a document of this and share with everyone else :) I have attached the document. The document contains only those hooks which are in either of the drupal installations and not both.
The major differences that i see in drupal 6 are:
- Actions is integrated with the core.
- Hook boot allows me to perform some tasks even if the page is cached
- Menu Alter allows me to change the menu items created by the core [Could be changing the title or just changing the case of a letter]
- Schema hooks relieves the developer from the hassles to code the query for different db engines
- Translation hooks help in localization of text sidewide
- Watchdog hook allows me to send messages on some special logs [could be fatal errors]
What do you guys think about the same?? Lets discuss about it.
P.S.: Apologies for putting it in a doc file and that too in a very unreadable format. I'm the worst man to make good documentations. :) I hope at the end of the day at least someone is able to use this.
| Attachment | Size |
|---|---|
| Drupal Hooks.doc | 29.5 KB |
Comments
its kewl
nice one.
Very good topic
Very good topic
Druapal 6 vs Drupal 7 hooks coming soon
As a follow-up, I'll post the major differences of drupal 6 vs drupal 7 hooks too.. Of course, as soon as I get a chance..
Cheers,
Mukesh Agarwal
www.innoraft.com