Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Alternate resources: 

The event-driven hook system

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:08
    Drupal modules interact by responding to events.
  • 0:12
    And you as a module developer can hook in to these core processes.
  • 0:16
    You may not realize it but with every click,
  • 0:19
    a user is initiating a series of events. A user registers,
  • 0:23
    a node is being displayed, content is being searched.
  • 0:27
    With every event, a module developer has the option to hook in to the data
  • 0:32
    that is being passed around.
  • 0:34
    There is no reason to change what Drupal core does,
  • 0:37
    even if you desire a different outcome.
  • 0:39
    Drupal has a very robust hook system

The Event-Driven Hook System


This chapter describes how Drupal modules are able respond to specific events through the hook system. A couple of example hooks are implemented in order to see how this process works. This video builds on the demo module we created in the previous chapter.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.