Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
mpotter CreditAttribution: mpotter commentedClosing old D6 issues.