forked from leftypol/leftypol
New feature: "events". Will eventually replace/extend "themes".
This commit is contained in:
parent
ab1db9dd8a
commit
9d58186360
4 changed files with 70 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue