Sohowiki Sandbox
From Sohowiki
Revision as of 15:44, 18 May 2006 by 70.155.66.187 (Talk)
Write now, organize and place later. This is the place to draft content before you know exactly where it should go...also good place for expermimenting with wiki markup.
hook_attach
hook_attach(plugin file, hook id)
Includes (attaches) your custom script (plugin file) at a pre-designated place (hook id) in the Pro Edition source code.
Example 1 - designated hook location in Pro Edition source code
eval(hook("header.php:top_javascript", basename(__FILE__)));
Taken from sohoadmin/program/header.php
Example 2 - calling hook attachement() from your install_manifest.php
hook_attach("quickedit_js.php", "header.php:top_javascript");
Taken from QuickEdit Dropdown Menu plugin
hook_overwrite
hook_overwrite(source file name, plugin file name)
Example 1 - calling hook_overwrite from your install_manifest.php
hook_overwrite("sohoadmin/program/main_menu.php", "main_menu-helloworld.php");