New feature: "events". Will eventually replace/extend "themes".
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user