/**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return String
  */
 function getOptions($form_id)
 {
     $defaults = array('title-enable' => true, 'text-enable' => true, 'content-title-title' => __('Post Title', 'tdomf'), 'content-title-default_text' => "", 'content-title-use-filter' => 'preview', 'content-title-filter' => 'the_title', 'content-text-title' => __('Post Text', 'tdomf'), 'content-text-use-filter' => 'preview', 'content-text-filter' => 'the_content', 'content-text-kses' => true, 'content-text-default_text' => "");
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     # convert previous textfield options to new utility textfield options
     if (isset($options['title-required'])) {
         $options['content-title-required'] = $options['title-required'];
         unset($options['title-required']);
     }
     if (isset($options['title-size'])) {
         $options['content-title-size'] = $options['title-size'];
         unset($options['title-size']);
     }
     # convert previous textarea options to new utility textarea options
     if (isset($options['text-required'])) {
         $options['content-text-required'] = $options['text-required'];
         unset($options['text-required']);
     }
     if (isset($options['text-cols'])) {
         $options['content-text-cols'] = $options['text-cols'];
         unset($options['text-cols']);
     }
     if (isset($options['text-rows'])) {
         $options['content-text-rows'] = $options['text-rows'];
         unset($options['text-rows']);
     }
     if (isset($options['quicktags'])) {
         $options['content-text-quicktags'] = $options['quicktags'];
         unset($options['quicktags']);
     }
     if (isset($options['restrict-tags'])) {
         $options['content-text-restrict-tags'] = $options['restrict-tags'];
         unset($options['restrict-tags']);
     }
     if (isset($options['allowable-tags'])) {
         $options['content-text-allowable-tags'] = $options['allowable-tags'];
         unset($options['allowable-tags']);
     }
     if (isset($options['char-limit'])) {
         $options['content-text-char-limit'] = $options['char-limit'];
         unset($options['char-limit']);
     }
     if (isset($options['word-limit'])) {
         $options['content-text-word-limit'] = $options['word-limit'];
         unset($options['word-limit']);
     }
     # now grab defaults for textarea and textfield
     $options = $this->textarea->getOptions($options);
     $options = $this->textfield->getOptions($options);
     # unconfigurable by user
     $options['content-text-use-filter'] = 'preview';
     $options['content-text-filter'] = 'the_content';
     $options['content-text-kses'] = true;
     $options['content-title-use-filter'] = 'preview';
     $options['content-title-filter'] = 'the_title';
     return $options;
 }
 /**
  * Overrides "getOptions" with defaults for this widget
  * 
  * @access public
  * @return String
  */
 function getOptions($form_id)
 {
     $defaults = array('excerpt-title' => __('Excerpt Text', 'tdomf'), 'excerpt-use-filter' => 'preview', 'excerpt-filter' => 'the_excerpt', 'excerpt-kses' => false, 'excerpt-default_text' => "");
     $options = TDOMF_Widget::getOptions($form_id);
     $options = wp_parse_args($options, $defaults);
     # convert previous textarea options to new utility textarea options
     if (isset($options['text-required'])) {
         $options['excerpt-required'] = $options['text-required'];
         unset($options['text-required']);
     }
     if (isset($options['text-cols'])) {
         $options['excerpt-cols'] = $options['text-cols'];
         unset($options['text-cols']);
     }
     if (isset($options['text-rows'])) {
         $options['excerpt-rows'] = $options['text-rows'];
         unset($options['text-rows']);
     }
     if (isset($options['quicktags'])) {
         $options['excerpt-quicktags'] = $options['quicktags'];
         unset($options['quicktags']);
     }
     if (isset($options['restrict-tags'])) {
         $options['excerpt-restrict-tags'] = $options['restrict-tags'];
         unset($options['restrict-tags']);
     }
     if (isset($options['allowable-tags'])) {
         $options['excerpt-allowable-tags'] = $options['allowable-tags'];
         unset($options['allowable-tags']);
     }
     if (isset($options['char-limit'])) {
         $options['excerpt-char-limit'] = $options['char-limit'];
         unset($options['char-limit']);
     }
     if (isset($options['word-limit'])) {
         $options['excerpt-word-limit'] = $options['word-limit'];
         unset($options['word-limit']);
     }
     # now grab defaults for textarea
     $options = $this->textarea->getOptions($options);
     return $options;
 }