Hooks: Drupal 6 Vs Drupal 5

mike4u4ever2001'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
Groups:
Login to post comments