Jump to content

IPS 4: Let a single hook be inserted to several places?


Recommended Posts

Hi, I'm not sure if this was touched upon in previous blog entries.

What I would wish was for it to be possible to be able to define several hook points for a single hook file. So a single hook php file could be run for several places.

This would be very useful for hooks that only utilize global variables. (Or take into account that it's visible several places)

For example right now I'm creating something that will add a "promo box" at the top of the board index. But in the topic view and forum view for instance, it will be at the bottom. The contents of the promo box would be the same on either page.

As it is currently I would have to create several hook php files with the same content and be sure to remember to update each one of them.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...