]> git.mxchange.org Git - friendica.git/blobdiff - mod/cb.php
Merge remote-tracking branch 'upstream/develop' into develop
[friendica.git] / mod / cb.php
index 04d01302c11504fff949580487ab7bc6af2950b0..90e41fb6d5e1d821dac470aff382c6076919dd83 100644 (file)
@@ -4,28 +4,21 @@
  * General purpose landing page for plugins/addons
  */
 
-if(! function_exists('cb_init')) {
-function cb_init(&$a) {
+
+function cb_init(App &$a) {
        call_hooks('cb_init');
 }
-}
 
-if(! function_exists('cb_post')) {
-function cb_post(&$a) {
+function cb_post(App &$a) {
        call_hooks('cb_post', $_POST);
 }
-}
 
-if(! function_exists('cb_afterpost')) {
-function cb_afterpost(&$a) {
+function cb_afterpost(App &$a) {
        call_hooks('cb_afterpost');
 }
-}
 
-if(! function_exists('cb_content')) {
-function cb_content(&$a) {
+function cb_content(App &$a) {
        $o = '';
        call_hooks('cb_content', $o);
        return $o;
-}
-}
+}
\ No newline at end of file