Index: automenu.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/automenu/automenu.module,v
retrieving revision 1.1.4.4
diff -u -r1.1.4.4 automenu.module
--- automenu.module	5 May 2009 14:15:21 -0000	1.1.4.4
+++ automenu.module	7 Oct 2009 16:14:41 -0000
@@ -19,6 +19,7 @@
             'link_title' => $node->title,
             'plid' => $parent_menu[1],
             'hidden' => variable_get('automenu_hide_'.$node->type, 0),
+            'expanded' => variable_get('automenu_expanded_'.$node->type, 0),
             //'customized' => true, // ?
           );
           if (!menu_link_save($new_menu)) {
@@ -48,8 +49,8 @@
 
     // 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']['parentmenu'] = array(
       '#type' => 'select',
       '#title' => t('Default parent menu'),
@@ -75,6 +76,12 @@
       '#description' => t('Set all auto generated menu items of this content type to hidden'),
     );
 
+    $form['workflow']['automenu_expanded'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Set automenu entry as expanded'),
+      '#default_value' => variable_get('automenu_expanded_' . $form['#node_type']->type, 0),
+      '#description' => t('Set all auto generated menu items of this content type to expanded'),
+    );
 
   }
 }

