I have been trying several different ways to add a menu link to Open Atriums features menu. First by:

function timetracker_install() {
	
  $link = array();
	$link['link_title'] = "My time";
	$link['link_path'] = 'timetracker/timetracker/user';
	$link['menu_name'] = 'features';
	$link['enabled'] => 1,
	$link['module'] = "timetracker";
	menu_link_save( $link );
	
	menu_cache_clear_all();
}

Which does not work. Subsequently by;


db_query(INSERT INTO `menu_links` (`menu_name`, `mlid`, `link_path`, `router_path`, `link_title`, `options`, `module`)
VALUES('features', NULL, 'timetracker/timetracker/user', 'timetracker/%/%', 'My time', 'a:0:{}', 'timetracker');


The SQL for a row in the database which causes the entire menu to disappear.

So is this a problem with Open Atrium (perhaps .... features or D6)?

Comments

mpotter’s picture

Status: Active » Closed (won't fix)

Closing old D6 issues.