_hook_ * * This function allows one to hook html into many different modules' pages to display html/information * In this example we have hooked into blacklist * * @return string The return HTML to send back */ function helloworld_hook_blacklist() { $html = ''; $html = '
'; $html .= _("Hello World Hook"); $html .= '
'; $html .= ''; $html .= _("This is the Text for the item").''._("Popup Help Descriptions").'.'; $html .= ''; $html .= 'This is the item'; $html .= ''; return $html; } /** * _hookProcess_ * * This function allows one to process data that was saved on the hooked raw module page * * @param $viewing_itemid string the id of the item being viewed * @param $request array php's $_REQUEST array * @return bool true successful or false if not */ function helloworld_hookProcess_blacklist($viewing_itemid, $request) { } function helloworld_configpageinit($pagename) { helloworld_applyhooks(); } function helloworld_applyhooks() { global $currentcomponent; // Add the 'process' function - this gets called when the page is loaded, to hook into // displaying stuff on the page. $currentcomponent->addguifunc('helloworld_configpageload'); } function helloworld_configpageload() { global $currentcomponent, $endpoint, $db; $section = _('Hooker'); $currentcomponent->addguielem($section, new gui_drawselects('hooker_box', 50, '', 'GUI Item Name', 'Gui Item Help Text'), 9); }