99a100,110 > $menu = menu_get_menu(); > $menus = array('' => 'None: Define Manually Below'); > foreach ($menu['items'][0]['children'] as $choice) { > if ($choice > 1) { > // Don't use menu 1 (navigation) > $menus = $menus + array($choice => $menu['visible'][$choice]['title']); > } > } > > $form .= form_select('Use Menu', 'phptemplate_menu_links', variable_get('phptemplate_menu_links', ''), $menus, $description = 'This will allow the secondary links to change depending on what primary link is active. It will override any links defined below.'); > 155a167,187 > > if (variable_get('phptemplate_menu_links', '')) { > $pid = variable_get('phptemplate_menu_links', ''); > $menu = menu_get_menu(); > if (isset($menu['visible'][$pid]) && $menu['visible'][$pid]['children']) { > foreach ($menu['visible'][$pid]['children'] as $mid) { > $style = (count($menu['visible'][$mid]['children']) ? ((menu_in_active_trail($mid) || ($menu['visible'][$mid]['type'] & MENU_EXPANDED)) ? 'expanded' : 'collapsed') : 'leaf'); > $style .= (drupal_get_normal_path($menu['items'][$mid]['path']) == $_GET['q']) ? ' active' : ''; > $links['primary'][] = "