- Patch #857792 by Bojhan, aspilicious, andypost: add 'Home' link to main menu - standard profile.

merge-requests/26/head
Dries Buytaert 2010-07-22 23:39:14 +00:00
parent c03800e0cd
commit a03bf401b6
1 changed files with 8 additions and 0 deletions

View File

@ -415,6 +415,14 @@ function standard_install() {
->fields(array('uid' => 1, 'rid' => $admin_role->rid))
->execute();
// Create a Home link in the main menu.
$item = array(
'link_title' => 'Home',
'link_path' => '<front>',
'menu_name' => 'main-menu',
);
menu_link_save($item);
// Update the menu router information.
menu_rebuild();