diff --git a/inc/config.php b/inc/config.php index ae0a36c5..afc4ceaa 100644 --- a/inc/config.php +++ b/inc/config.php @@ -956,6 +956,23 @@ /* * ==================== + * 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 * ==================== */ diff --git a/inc/events.php b/inc/events.php new file mode 100644 index 00000000..a5b9129d --- /dev/null +++ b/inc/events.php @@ -0,0 +1,40 @@ +