diff options
author | Sem <sembrestels@riseup.net> | 2011-12-15 21:44:19 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2011-12-15 21:44:19 +0100 |
commit | 19f08612ecf97e509da1428b912584c05a3326c8 (patch) | |
tree | e186f91e49106b7142c3edd6c3fd1e9dca93c7e6 /start.php | |
parent | 7e514586d72eb0cc4503fcffa96d6d4a9ab8f956 (diff) | |
download | saravea_theme-19f08612ecf97e509da1428b912584c05a3326c8.tar.gz saravea_theme-19f08612ecf97e509da1428b912584c05a3326c8.tar.bz2 |
Overrided elgg logo by site name.
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3,4 +3,12 @@ elgg_register_event_handler('init', 'system', 'n1_theme_init');
function n1_theme_init() {
+ elgg_unregister_menu_item('topbar','elgg_logo');
+ $item = new ElggMenuItem('site_logo', elgg_get_site_entity()->name, elgg_get_site_url());
+ elgg_register_menu_item('topbar', $item);
+ elgg_register_plugin_hook_handler('register', 'menu:topbar', 'n1_theme_topbar_menu');
+}
+
+function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){
+ //var_dump($returnvalue);exit();
}
|