New feature: "events". Will eventually replace/extend "themes".

This commit is contained in:
Michael Save
2012-03-19 02:41:06 +11:00
parent ab1db9dd8a
commit 9d58186360
4 changed files with 70 additions and 1 deletions

View File

@@ -954,6 +954,23 @@
// Edit the current configuration (via web interface)
$config['mod']['edit_config'] = ADMIN;
/*
* ====================
* Events (PHP 5.3.0+)
* ====================
*/
// event_handler('post', function($post) {
// // do something
// });
// event_handler('post', function($post) {
// // do something else
//
// // return an error (reject post)
// return 'Sorry, you cannot post that!';
// });
/*
* ====================
* Other/uncategorized