Index: modules/blogapi.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/blogapi.module,v
retrieving revision 1.83
diff -u -r1.83 blogapi.module
--- modules/blogapi.module	7 May 2006 00:08:36 -0000	1.83
+++ modules/blogapi.module	7 Jun 2006 15:50:26 -0000
@@ -129,11 +129,6 @@
       array('array'),
       t('Retrieve information about the text formatting plugins supported by the server.')),
     array(
-      'mt.getTrackbackPings',
-      'blogapi_mt_get_trackback_pings',
-      array('array', 'string'),
-      t('Retrieve the list of TrackBack pings posted to a particular entry. This could be used to programmatically retrieve the list of pings for a particular entry, then iterate through each of those pings doing the same, until one has built up a graph of the web of entries referencing one another on a particular topic.')),
-    array(
       'mt.publishPost',
       'blogap_mti_publish_post',
       array('boolean', 'string', 'string', 'string'),
@@ -221,6 +216,8 @@
   if (user_access('administer nodes') && !isset($edit['date'])) {
     $edit['date'] = format_date(time(), 'custom', 'Y-m-d H:i:s O');
   }
+  
+  node_invoke_nodeapi($edit, 'blogapi new');
 
   node_validate($edit);
   if ($errors = form_get_errors()) {
@@ -273,6 +270,8 @@
     $node->body = $content;
   }
 
+  node_invoke_nodeapi($node, 'blogapi edit');
+
   node_validate($node);
   if ($errors = form_get_errors()) {
     return blogapi_error(implode("\n", $errors));
@@ -475,14 +474,6 @@
 }
 
 /**
- * Blogging API callback. Can not be implemented without support from
- * trackback module.
- */
-function blogapi_mt_get_trackback_pings() {
-  return blogapi_error(t('Not implemented.'));
-}
-
-/**
  * Blogging API callback. Publishes the given node
  */
 function blogap_mti_publish_post($postid, $username, $password) {
@@ -658,20 +649,6 @@
     $node->body = $node->body . '<!--extended-->' . $struct['mt_text_more'];
   }
 
-  // mt_tb_ping_urls
-  if (function_exists('trackback_send')) {
-    if (is_array($struct['mt_tb_ping_urls'])) {
-      foreach ($struct['mt_tb_ping_urls'] as $tb_ping_url) {
-        $node->tb_url = $tb_ping_url->getVal();
-        trackback_send($node);
-        unset($node->tb_url); // make sure we don't ping twice
-      }
-    }
-    else {
-      $node->tb_url = $struct['mt_tb_ping_urls'];
-    }
-  }
-
   // mt_convert_breaks
   if ($struct['mt_convert_breaks']) {
     $node->format = $struct['mt_convert_breaks'];
