Added event hooks

This commit is contained in:
Garvin Hicking 2008-02-29 09:10:27 +00:00
parent 75e51a4bcd
commit 743711e061
2 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,10 @@
Version 1.3 ()
------------------------------------------------------------------------
* Added new event-hooks 'backend_directory_delete' and
'backend_directory_createoptions' to the backend.
(garvinhicking)
* Updated statistics plugin to contain per week/day visitors.
(roti)

View File

@ -360,6 +360,8 @@ switch ($serendipity['GET']['adminAction']) {
printf(ERROR_NO_DIRECTORY, $new_dir);
}
serendipity_plugin_api::hook_event('backend_directory_delete', $new_dir);
break;
case 'directoryEdit':
@ -565,6 +567,7 @@ switch ($serendipity['GET']['adminAction']) {
</select>
</td>
</tr>
<?php serendipity_plugin_api::hook_event('backend_directory_createoptions', $folders); ?>
</table>
<div><input name="SAVE" value="<?php echo CREATE_DIRECTORY ?>" class="serendipityPrettyButton input_button" type="submit"></div>
</form>