allow themes to mess with the navbar contents without a custom template. It's done as a callback using a transient plugin hook.
For instance to get rid of the notifications link:
insert_hook('nav','strip_notify');
function strip_notify($a,&$b) {
unset($b['nav']['notifications']);
}
This commit is contained in:
3
boot.php
3
boot.php
@@ -2459,6 +2459,8 @@ function construct_page(&$a) {
|
||||
* Build the page - now that we have all the components
|
||||
*/
|
||||
|
||||
require_once(theme_include('theme_init.php'));
|
||||
|
||||
$installing = false;
|
||||
|
||||
if($a->module == 'setup')
|
||||
@@ -2473,7 +2475,6 @@ function construct_page(&$a) {
|
||||
}
|
||||
}
|
||||
|
||||
require_once(theme_include('theme_init.php'));
|
||||
|
||||
if(($p = theme_include(current_theme() . '.js')) != '')
|
||||
head_add_js($p);
|
||||
|
||||
Reference in New Issue
Block a user