Commit 47cbcac6 authored by Gregor Anzelj's avatar Gregor Anzelj

Local hook for adding custom sideblocks (Bug #1314465)

Change-Id: I4f461e72074fb937baeb8a5abd35667d2e3cb407
Signed-off-by: default avatarGregor Anzelj <gregor.anzelj@gmail.com>
parent b60af91a
......@@ -664,6 +664,11 @@ EOF;
}
}
// local_sideblocks_update allows sites to customise the sideblocks by munging the $SIDEBLOCKS array.
if (function_exists('local_sideblocks_update')) {
local_sideblocks_update($SIDEBLOCKS);
}
usort($SIDEBLOCKS, create_function('$a,$b', 'if ($a["weight"] == $b["weight"]) return 0; return ($a["weight"] < $b["weight"]) ? -1 : 1;'));
// Place all sideblocks on the right. If this structure is munged
......
......@@ -40,6 +40,8 @@
*
* - local_right_nav_update(&$menu): Modify the right column navigation menu by reference
*
* - local_sideblocks_update(&$SIDEBLOCKS): Modify sideblocks column by reference
*
* - local_site_content_pages(): Add to the list of "static pages" types.
*
* - local_xmlrpc_services(): add custom xmlrpc functions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment