Index: links_weblink.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/links/links_weblink.module,v
retrieving revision 1.3
diff -u -r1.3 links_weblink.module
--- links_weblink.module	20 Nov 2005 03:00:52 -0000	1.3
+++ links_weblink.module	5 Dec 2005 21:05:05 -0000
@@ -25,7 +25,7 @@
  * Implementation of hook_node_info()
  */
 function links_weblink_node_info() {
-  return array('weblink' => array('name' => t('weblink'), 'base' => 'weblink'));
+  return array('weblink' => array('name' => t('weblink'), 'base' => 'links_weblink'));
 }
 
 /**
@@ -57,44 +57,22 @@
   return array('create weblinks');
 }
 
-/**
- * Node Hooks
- */
-function links_weblink_node_name($node) {
-  return t("weblink");
-}
-if (! function_exists('function weblink_node_name')) {
-  function weblink_node_name($node) {
-    return links_weblink_node_name($node);
-  }
-}
-
-function links_weblink_nodeapi(&$node, $op, $teaser=NULL, $page=NULL) {
-  if ($node->type == 'weblink' && $op == 'form') {
-    $form = array();
-    
-    $form['title'] = array(
-      '#type' => 'textfield',
-      '#title' => t('Title'),
-      '#required' => TRUE,
-      '#default_value' => $node->title,
-      '#description' => t("Textual description of the weblink"),
-    );
-    
-    $form['body'] = array(
-      '#type' => 'textarea',
-      '#title' => t('Body'),
-      '#default_value' => $node->body,
-      '#required' => TRUE,
-    );
-    
-    $form = array_merge($form, filter_form($node->format));
-    return $form;
-  }
-}
-
-function links_weblink_node_types() {
-  return array('weblink');
+function links_weblink_form(&$node) {
+  $form['title'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Title'),
+    '#required' => TRUE,
+    '#default_value' => $node->title,
+    '#description' => t("Textual description of the weblink"),
+  );
+  
+  $form['body'] = array(
+    '#type' => 'textarea',
+    '#title' => t('Body'),
+    '#default_value' => $node->body,
+    '#required' => TRUE,
+  );
+  return $form;
 }
 
 function links_weblink_access($op, $node) {

