hi
I try to create a default custom menu for zpBootstrap.
First, I create my default custom menu with menu manager : Home page, Gallery page, News index, and Pages list).
I can see menu items in my db and I can see all my items in my FE.
Second, I have a look on garland and zenpage themeoptions files and `if (function_exists('createMenuIfNotExists')) {...}` statements.
Third, I try to create my default custom menu in my own themeoptions file, based on existing values in my db and examples of official themes.
So, I have he following code:
```
if (class_exists('menu_manager')) {
$menuitems = array(
array('type' => 'homepage', 'title' => gettext('Home'), link => '', 'show' => 1, 'nesting' => 0),
array('type' => 'zenpagenewsindex', 'title' => gettext('News'), link => '', 'show' => 1, 'nesting' => 0),
array('type' => 'galleryindex', 'title' => gettext('Gallery'), link => '', 'show' => 1, 'nesting' => 0),
array('type' => 'menufunction', 'title' => gettext('Pages'), link => "printPageMenu('list-top', '', 'active', '', '', '', 0, false);", 'show' => 1, 'nesting' => 0),
);
createMenuIfNotExists($menuitems, 'zpBootstrap');
}
```
I have 2 issues.
First one:
for `homepage`item, I have this message in debug log:
`createMenuIfNotExists item 0 has an invalid type.`
==> so homepage type seems to be invalid and something should by missing in menu_manager plugin.
Second one:
for each item, I have `link => ''` and for each item, I have this message in debug log:
` WARNING: Use of undefined constant link - assumed 'link' (this will throw an Error in a future version of PHP) in /home/avbo7291/public_html/zenphoto__test/themes/zpBootstrap/themeoptions.php on line 51
ThemeOptions->__construct called from admin-themes.php [38] `.
I don't understand this issue.
In fact, with items created by menu manager admin, links in db are empty and with garland and zenpage, there are similar statements with emply links
`array('type' => 'menulabel', 'title' => gettext('News Articles'), 'link' => '', 'show' => 1, 'nesting' => 0),`
and in db there is a value like `600584c2d5ccb97c0c0c424d9f32d6b102fcb040`.
==> so something is OK when created with menu manager admin but KO when created by php code and inserted values in db.
can you help me?