Skip to content
Snippets Groups Projects
Commit b4ed05d7 authored by Tim Steiner's avatar Tim Steiner
Browse files

When using the migration tool, remove the default "Home" link that is created...

When using the migration tool, remove the default "Home" link that is created by the standard install profile.

git-svn-id: file:///tmp/wdn_thm_drupal/trunk@286 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 9d1d1111
No related branches found
No related tags found
No related merge requests found
......@@ -266,6 +266,17 @@ class Unl_Migration_Tool
private function _createMenu()
{
// Start off by removing the "Home" menu link if it exists.
$menu_links = menu_load_links('main-menu');
foreach ($menu_links as $menu_link) {
if ($menu_link['plid'] == 0 &&
$menu_link['link_title'] == 'Home' &&
$menu_link['link_path'] == '<front>') {
menu_link_delete($menu_link['mlid']);
}
}
// Now recursively create each menu.
$primaryWeights = 1;
foreach ($this->_menu as $primaryMenu) {
$item = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment