| 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?
|