Hook special
From Sohowiki
(Difference between revisions)
Line 1: | Line 1: | ||
+ | ==Overview== | ||
+ | |||
;Syntax : hook_special(target special hook, data array) | ;Syntax : hook_special(target special hook, data array) | ||
− | |||
;Description | ;Description | ||
Line 6: | Line 7: | ||
[[Category:Plugins]] | [[Category:Plugins]] | ||
+ | |||
+ | ==Available special hooks== | ||
+ | |||
+ | ===page_editor_object=== | ||
+ | <code>$data = array(); | ||
+ | $data['draggable_object_image'] = "eng-icon_scroll.gif"; | ||
+ | $data['draggable_object_id'] = "scroll_obj"; | ||
+ | $data['properties_dialog_id'] = "scrollProps"; | ||
+ | $data['mod_folder'] = $plugin_folder; | ||
+ | $data['properties_dialog_file'] = $plugin_folder.DIRECTORY_SEPARATOR."scroll_props.php"; | ||
+ | $data['place_object_js_function'] = $plugin_folder.DIRECTORY_SEPARATOR."scroll_js.php"; | ||
+ | hook_special("page_editor_object", $data);</code> |
Revision as of 16:20, 6 June 2006
Overview
- Syntax
- hook_special(target special hook, data array)
- Description
- Utilizes special hook built-in to make it easier for your plugin to tie into a certain commonly-utilized areas of the product (like adding a button for your plugin to the main menu).
Available special hooks
page_editor_object
$data = array();
$data['draggable_object_image'] = "eng-icon_scroll.gif";
$data['draggable_object_id'] = "scroll_obj";
$data['properties_dialog_id'] = "scrollProps";
$data['mod_folder'] = $plugin_folder;
$data['properties_dialog_file'] = $plugin_folder.DIRECTORY_SEPARATOR."scroll_props.php";
$data['place_object_js_function'] = $plugin_folder.DIRECTORY_SEPARATOR."scroll_js.php";
hook_special("page_editor_object", $data);