X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcb.php;h=030bea4d31849c068a8969c8929fae21530ff421;hb=a5e91175243a41c77a56e73efc3672f20a7e6d23;hp=04d01302c11504fff949580487ab7bc6af2950b0;hpb=0c67c89715df801e0c887be50c9739db3bae7ca3;p=friendica.git diff --git a/mod/cb.php b/mod/cb.php index 04d01302c1..030bea4d31 100644 --- a/mod/cb.php +++ b/mod/cb.php @@ -4,28 +4,22 @@ * General purpose landing page for plugins/addons */ -if(! function_exists('cb_init')) { -function cb_init(&$a) { +use Friendica\App; + +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