mirror of
https://github.com/friendica/friendica
synced 2024-11-10 13:02:54 +00:00
db949bb802
Only define functions if they have not been defined before, e.g. in themes. This makes it possible to override parts of a module and still use the other functions.
31 lines
476 B
PHP
31 lines
476 B
PHP
<?php
|
|
|
|
/**
|
|
* General purpose landing page for plugins/addons
|
|
*/
|
|
|
|
if(! function_exists('cb_init')) {
|
|
function cb_init(&$a) {
|
|
call_hooks('cb_init');
|
|
}
|
|
}
|
|
|
|
if(! function_exists('cb_post')) {
|
|
function cb_post(&$a) {
|
|
call_hooks('cb_post', $_POST);
|
|
}
|
|
}
|
|
|
|
if(! function_exists('cb_afterpost')) {
|
|
function cb_afterpost(&$a) {
|
|
call_hooks('cb_afterpost');
|
|
}
|
|
}
|
|
|
|
if(! function_exists('cb_content')) {
|
|
function cb_content(&$a) {
|
|
$o = '';
|
|
call_hooks('cb_content', $o);
|
|
return $o;
|
|
}
|
|
}
|