Assure hooks in a Drupal module are ran before the others.

/ Published in: PHP
Save to your folder(s)

Sets a module's weight to the lowest number. This assures that your module is ran before all other modules. Userfull if you want your implementation of a hook to be ran first.
Add this to your .install file. Replace your_modulename with the name of your module.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.