Hooks: Drupal 6 Vs Drupal 5

Events happening in the community are now at Drupal community events on www.drupal.org.
mukesh.agarwal17's picture

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:

  1. Actions is integrated with the core.
  2. Hook boot allows me to perform some tasks even if the page is cached
  3. 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]
  4. Schema hooks relieves the developer from the hassles to code the query for different db engines
  5. Translation hooks help in localization of text sidewide
  6. 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.

AttachmentSize
Drupal Hooks.doc29.5 KB

Comments

its kewl

ramprasath's picture

nice one.

Very good topic

slsawhney's picture

Very good topic

Druapal 6 vs Drupal 7 hooks coming soon

mukesh.agarwal17's picture

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

India

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week