From 12db46dcad7cddcc97d4343cd81cfd42498c93b6 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 5 Nov 2015 20:49:25 -0800 Subject: a bit of explanation at the beginning --- doc/hooklist.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/hooklist.bb') diff --git a/doc/hooklist.bb b/doc/hooklist.bb index 06b3e6de7..9e0220013 100644 --- a/doc/hooklist.bb +++ b/doc/hooklist.bb @@ -1,3 +1,8 @@ +[h2]Hooks[/h2] + +Hooks allow plugins/addons to "hook into" the code at many points and alter the behaviour or otherwise perform independent actions when an activity takes place or when certain data structures are accessed. There are many hooks which allow you to tie into the software at most any point and do something slightly different than the default thing. These hooks are passed two variables. The first is the App structure which contains details about the entire state of the page request as we build the resulting page. The second is unique to the specific hook that is called and provides specific detail about what is happening in the software at the time the hook is invoked. + + [zrl=[baseurl]/help/hook/module_mod_aftercontent]module_mod_aftercontent[/zrl] General purpose hook for any module, executed after mod_content(). Replace 'module' with module name, e.g. 'photos_mod_aftercontent'. -- cgit v1.2.3