$optpage_loader = 'load_optpage_data_order';
$optpage_loadhook = 'optpage_loadhook_order';
break;
- default: do_hook('optpage_set_loadinfo');
+ default: do_hook('optpage_set_loadinfo', $null);
}
/**********************************************************/
/* Assemble the data for this option page. */
$optpage_data = array();
$optpage_data = $optpage_loader();
- do_hook($optpage_loadhook);
+ do_hook($optpage_loadhook, $null);
$optpage_data['options'] = create_option_groups($optpage_data['grps'], $optpage_data['vals']);
}
}
/* Run the options save hook. */
- do_hook($save_hook_name);
+ do_hook($save_hook_name, $null);
}
/***************************************************************/
);
/* Build a section for plugins wanting to register an optionpage. */
- do_hook('optpage_register_block');
+ do_hook('optpage_register_block', $null);
/*****************************************************/
/* Let's sort Javascript Option Pages to the bottom. */
foreach ($optpage_blocks as $cur_optpage) {
if (!isset($cur_optpage['js']) || !$cur_optpage['js']) {
$reg_optpage_blocks[] = $cur_optpage;
- } else if ($javascript_on == SMPREF_JS_ON) {
+ } else if (checkForJavascript()) {
$js_optpage_blocks[] = $cur_optpage;
}
}
$oTemplate->display('option_groups.tpl');
- do_hook('options_link_and_description');
+ do_hook('options_link_and_description', $null);
/*************************************************************************/
/**
* The variables below should not be needed by the template since all plugin
* hooks are called here, not in the template. If we find otherwise, these
- * variables can be passed to the template. Commenting out for not.
+ * variables can be passed to the template. Commenting out for now.
*/
/*
$oTemplate->assign('max_refresh', isset($max_refresh) ? $max_refresh : NULL);
* END comment block
*/
+ $oTemplate->assign('submit_name', $submit_name);
$oTemplate->display('options.tpl');
+//FIXME: need to remove HTML from here!
echo " </td>\n" .
" </tr>\n";
/* If it is not empty, trigger the inside hook. */
if ($inside_hook_name != '') {
- do_hook($inside_hook_name);
+ do_hook($inside_hook_name, $null);
}
- /* Spit out a submit button. */
- OptionSubmit($submit_name);
+//FIXME: need to remove HTML from here!
echo "</table>\n" .
"</form>\n";
/* If it is not empty, trigger the bottom hook. */
if ($bottom_hook_name != '') {
- do_hook($bottom_hook_name);
+ do_hook($bottom_hook_name, $null);
}
}
$oTemplate->display('footer.tpl');
-?>
\ No newline at end of file
+?>