--- nodeteaser.module Tue Jan 2 17:57:10 2007 +++ nodeteaser-collapsible.module Tue Jan 2 17:57:10 2007 @@ -99,20 +99,25 @@ function nodeteaser_form_alter($form_id, } } -/* +/** * Create a form - returns a $form variable */ function _nodeteaser_form($type, $tags) { - //$settings = _nodewords_get_settings(); $form = array(); + + $form['nodeteaser'] = array( + '#type' => 'fieldset', + '#title' => t('Teaser or Summary'), + '#collapsible' => TRUE, + '#collapsed' => TRUE, // FALSE = nodeteaser_form section not collapsed by default + ); - $form['nodeteaser'] = array( - '#type' => 'textarea', - '#title' => t('Teaser or Summary'), - '#default_value' => $tags->teaser, - '#cols' => 65, - '#rows' => 12, - '#description' => t('Enter a teaser, summary, or description for this node. If you would like the whole body to display, DO NOT enter a teaser!'), + $form['nodeteaser']['input_form'] = array( + '#type' => 'textarea', + '#default_value' => $tags->teaser, + '#cols' => 65, + '#rows' => 12, + '#description' => t('Enter a teaser, summary, or description for this node. If you would like the whole body to display, DO NOT enter a teaser!'), );