/**
  * Process form input for widget
  * 
  * @access public
  * @return Mixed
  */
 function post($args, $options)
 {
     extract($args);
     // if sumbitting a new post (as opposed to editing)
     // make sure to *append* to post_content. For editing, overwrite.
     //
     if (TDOMF_Widget::isSubmitForm($mode)) {
         // Grab existing data
         $post = wp_get_single_post($post_ID, ARRAY_A);
         if (!empty($post['post_content'])) {
             $post = add_magic_quotes($post);
         }
         // Append
         $post_content = $post['post_content'];
         $post_content .= $this->textarea->post($args, $options, 'content_content');
     } else {
         // $mode startswith "edit-"
         // Overwrite
         $post_content = $this->textarea->post($args, $options, 'content_content');
     }
     // Title
     if ($options['title-enable']) {
         $content_title = tdomf_protect_input($this->textfield->post($args, $options, 'content_title'));
     }
     // Update actual post
     $post = array("ID" => $post_ID, "post_content" => $post_content);
     if ($options['title-enable']) {
         $post["post_title"] = $content_title;
         $post["post_name"] = sanitize_title($content_title);
     }
     $post_ID = wp_update_post($post);
     return NULL;
 }
 /**
  * Process form input for widget
  * 
  * @access public
  * @return Mixed
  */
 function post($args, $options)
 {
     extract($args);
     // Grab existing data
     $post = wp_get_single_post($post_ID, ARRAY_A);
     if (!empty($post['post_excerpt'])) {
         $post = add_magic_quotes($post);
     }
     $post_excerpt = $post['post_excerpt'];
     // get user input
     $post_excerpt .= $this->textarea->post($args, $options, 'excerpt_excerpt');
     // Update actual post
     $post = array("ID" => $post_ID, "post_excerpt" => $post_excerpt);
     $post_ID = wp_update_post($post);
     return NULL;
 }