1
0

Add new hooks

This commit is contained in:
Garvin Hicking
2006-10-04 08:16:42 +00:00
parent 8acffb2eaa
commit a8562c5783
2 changed files with 11 additions and 1 deletions

View File

@ -67,6 +67,8 @@ if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] .
}
if (is_array($template_config)) {
serendipity_plugin_api::hook_event('backend_templates_configuration_top', $template_config);
if ($serendipity['POST']['adminAction'] == 'configure') {
foreach($serendipity['POST']['template'] AS $option => $value) {
template_option::set_config($option, $value);
@ -98,8 +100,10 @@ if (is_array($template_config)) {
'template'
);
echo '</form><br />';
serendipity_plugin_api::hook_event('backend_templates_configuration_bottom', $template_config);
} else {
echo '<p>' . STYLE_OPTIONS_NONE . '</p>';
serendipity_plugin_api::hook_event('backend_templates_configuration_none', $template_config);
}
echo '<h3>' . SELECT_TEMPLATE . '</h3>';