View Single Post
  #1 (permalink)  
Old 05-21-2007, 03:23 PM
revolver revolver is offline
Constant Pligger
 
Join Date: Oct 2006
Posts: 227
Thanks: 56
Thanked 22 Times in 18 Posts
Building modules 101

I've been digging around in existing modules trying to figure out how to build my own. Can someone give a quick explanation on how module_add_action_tpl and module_add_actionwork?

As far as i can tell init.php declares which pages should load the module (easy to understand) and if(do_we_load_module){} contains everything that should be done if the module is loaded (also easy to understand).

module_add_action_tpl() and module_add_action seems to insert custom templates and actions respectively. But how does pligg know where to insert the new code?
Reply With Quote