path . 'mod/development_blog/views/'); // overide blog view set_view_location('object/blog', $CONFIG->path . 'mod/development_blog/views/'); } function development_blog_pagesetup() { global $CONFIG; //add submenu options if (get_context() == "development_blog") { if (isloggedin()) { #/*translation:Portfolio*/ #add_submenu_item(elgg_echo('portfolio:Portfolio'),$CONFIG->wwwroot."pg/portfolio"); #/*translation:Development Blog*/ #add_submenu_item(elgg_echo('portfolio:development_blog'),$CONFIG->wwwroot."pg/development_blog"); #/*translation:Development File*/ #add_submenu_item(elgg_echo('portfolio:development_file'),$CONFIG->wwwroot."pg/development_file"); } } } register_elgg_event_handler('init','system','development_blog_init'); register_elgg_event_handler('pagesetup','system','development_blog_pagesetup'); // register actions register_action("blog/add", false, $CONFIG->pluginspath . "development_blog/actions/add.php"); ?>