Updated modules to allow for partial overrides without errors

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.
This commit is contained in:
Andrej Stieben 2016-02-05 21:52:39 +01:00
commit db949bb802
123 changed files with 768 additions and 471 deletions

View file

@ -1,5 +1,6 @@
<?php
if(! function_exists('removeme_post')) {
function removeme_post(&$a) {
if(! local_user())
@ -24,9 +25,10 @@ function removeme_post(&$a) {
user_remove($a->user['uid']);
// NOTREACHED
}
}
}
if(! function_exists('removeme_content')) {
function removeme_content(&$a) {
if(! local_user())
@ -50,5 +52,5 @@ function removeme_content(&$a) {
));
return $o;
}
}