diff --git prev_next.module prev_next.module
index 68dedb0..33525d2 100644
--- prev_next.module
+++ prev_next.module
@@ -589,3 +589,46 @@ function _prev_next_node_types_sql($node_type = '') {
 
   return $cond;
 }
+
+/**
+ * Implementation of hook_form_alter().
+ */
+function prev_next_form_alter(&$form, $form_state, $form_id) {
+  if ($form_id == 'node_type_form') {
+    if (isset($form['#node_type']->type) && variable_get(PREV_NEXT_NODE_TYPE . $form['#node_type']->type, 0)) {
+      $form['workflow']['prev_next_link'] = array(
+        '#prefix' => '<strong>'. t('Prev Next API') .'</strong>',
+        '#type' => 'checkbox',
+        '#title' => t('Include Prev and Next in node links'),
+        '#default_value' => variable_get('prev_next_link_' . $form['#node_type']->type, 0),
+      );
+    }
+  }
+}
+
+/**
+ * Implementation of hook_link().
+ */
+function prev_next_link($type, $object, $teaser = FALSE) {
+  if ($teaser || $type != 'node') {
+    return array();
+  }
+  $links = array();
+  if (variable_get(PREV_NEXT_NODE_TYPE . $object->type, 0)) {
+    if (variable_get('prev_next_link_' . $object->type, 0)) {
+      if ($prev = prev_next_nid_prev($object->nid)) {
+        $links['prev_node'] = array(
+          'title' => t('Previous post'),
+          'href' => 'node/' . $prev
+        );
+      }
+      if ($next = prev_next_nid_next($object->nid)) {
+        $links['next_node'] = array(
+          'title' => t('Next post'),
+          'href' => 'node/' . $next
+        );
+      }
+    }
+  }
+  return $links;
+}
