### Eclipse Workspace Patch 1.0 #P ken Index: sites/all/modules/automenu/automenu.module =================================================================== RCS file: /cvs/drupal/contributions/modules/automenu/automenu.module,v retrieving revision 1.1.4.1 diff -u -r1.1.4.1 automenu.module --- sites/all/modules/automenu/automenu.module 10 Oct 2008 14:40:11 -0000 1.1.4.1 +++ sites/all/modules/automenu/automenu.module 17 Oct 2008 14:55:45 -0000 @@ -17,6 +17,7 @@ 'link_path' => 'node/' . $node->nid, 'link_title' => $node->title, 'plid' => $parent_menu[1], + 'hidden' => variable_get('automenu_hide_'.$node->type, 0), //'customized' => true, // ? ); if (!menu_link_save($new_menu)) { @@ -46,7 +47,13 @@ // add a selection for "no language" selection... maybe we can find a // better way (I think this is what happens in language neutral situations?) - + + $form['workflow']['automenu_hide'] = array( + '#type' => 'checkbox', + '#title' => t('Hide automenu entry'), + '#default_value' => variable_get('automenu_hide_' . $form['#node_type']->type, 0), + ); + $form['workflow']['parentmenu'] = array( '#type' => 'select', '#title' => t('Default parent menu'),