Thanks. Odd though as the code is already:
$coursemenubranch->add($myhomelabel, new moodle_url('/my/index.php'), $myhometext);
Thanks. Odd though as the code is already:
$coursemenubranch->add($myhomelabel, new moodle_url('/my/index.php'), $myhometext);