aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-25 22:46:25 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-25 22:46:25 -0700
commitb43c0bc471fa7a9afa7e735d1cf0e209372a3477 (patch)
tree209f8c950c154cd68c858133c24a9a426ebb9402 /index.php
parenta3d7e8456ad77f8409f6b3a673bb1c8d2b53949d (diff)
downloadvolse-hubzilla-b43c0bc471fa7a9afa7e735d1cf0e209372a3477.tar.gz
volse-hubzilla-b43c0bc471fa7a9afa7e735d1cf0e209372a3477.tar.bz2
volse-hubzilla-b43c0bc471fa7a9afa7e735d1cf0e209372a3477.zip
we aren't using the module_aside functions or hooks any more
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/index.php b/index.php
index 3c2f172f5..66ea844d0 100755
--- a/index.php
+++ b/index.php
@@ -151,10 +151,6 @@ $a->set_apps($arr['app_menu']);
*
* "module"_init
* "module"_post (only called if there are $_POST variables)
- * "module"_aside
- * $theme_$module_aside (and $extends_$module_aside) are run first if either exist
- * if either of these return false, module_aside is not called
- * This allows a theme to over-ride the sidebar layout completely.
* "module"_content - the string return of this function contains our page body
*
* Modules which emit other serialisations besides HTML (XML,JSON, etc.) should do
@@ -324,34 +320,6 @@ if($a->module_loaded) {
$func($a);
}
- if(! $a->error) {
- // If a theme has defined an _aside() function, run that first
- //
- // If the theme function doesn't exist, see if this theme extends another,
- // and see if that other theme has an _aside() function--if it does, run it
- //
- // If $aside_default is not False after the theme _aside() function, run the
- // module's _aside() function too
- //
- // This gives themes more control over how the sidebar looks
-
- $aside_default = true;
- call_hooks($a->module . '_mod_aside',$placeholder);
- if(function_exists(str_replace('-','_',current_theme()) . '_' . $a->module . '_aside')) {
- $func = str_replace('-','_',current_theme()) . '_' . $a->module . '_aside';
- $aside_default = $func($a);
- }
- elseif($aside_default && x($a->theme_info, "extends")
- && (function_exists(str_replace('-', '_',$a->theme_info["extends"]) . '_' . $a->module . '_aside'))) {
- $func = str_replace('-', '_', $a->theme_info["extends"]) . '_' . $a->module . '_aside';
- $aside_default = $func($a);
- }
- if($aside_default && function_exists($a->module . '_aside')) {
- $func = $a->module . '_aside';
- $func($a);
- }
- }
-
if((! $a->error) && (function_exists($a->module . '_content'))) {
$arr = array('content' => $a->page['content']);
call_hooks($a->module . '_mod_content', $arr);