? .DS_Store
? inline_5.patch
Index: inline.info
===================================================================
RCS file: inline.info
diff -N inline.info
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ inline.info	25 Dec 2006 06:22:09 -0000
@@ -0,0 +1,4 @@
+; $Id$
+name = Inline
+description = Allows users to insert uploaded files inline.
+dependencies = upload
Index: inline.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/inline/inline.module,v
retrieving revision 1.18
diff -u -F^f -r1.18 inline.module
--- inline.module	19 Aug 2006 16:09:54 -0000	1.18
+++ inline.module	25 Dec 2006 06:22:09 -0000
@@ -1,13 +1,34 @@
 <?php
 // $Id: inline.module,v 1.18 2006/08/19 16:09:54 ber Exp $
 
+/**
+  * Implementation of hook_menu().
+  */
+function inline_menu($may_cache) {
+  $items = array();
+
+  if ($may_cache) {
+    $items[] = array(
+      'path' => 'admin/settings/inline',
+      'title' => t('Inline'),
+      'description' => t('Manage automatic and manual inclusion of attachments in the content of your posts.'),
+      'callback' => 'drupal_get_form',
+      'callback arguments' => array('inline_settings'),
+      'access' => user_access('administer inline settings')
+    );
+  }
+  return $items;
+}
+
+function inline_perm() {
+  return array('administer inline settings');
+}
+
 function inline_help($section = 'admin/help#inline') {
   $output = '';
   switch ($section) {
     case 'admin/help#inline':
       return t('<p>Sometimes a user may want to add an image or a file inside the body of a node. This can be done with special tags that are replaced by links to the corresponding uploaded file. If the file is an image, it will be displayed inline, otherwise a link to the file will be inserted. To enable this feature and learn the proper syntax, visit the <a href="%filters">filters configuration screen</a>.</p>', array('%filters' => url('admin/filters')));
-    case 'admin/modules#description':
-      return t('Allows users to insert uploaded files inline. Requires upload.module to work');
     case 'filter#short-tip':
       return t('You may add links to files uploaded with this node <a href="%explanation-url">using special tags</a>', array('%explanation-url' => url('filter/tips', NULL, 'image')));
     case 'filter#long-tip':
@@ -36,7 +57,7 @@ function inline_settings() {
     '#options' => array('0' => t('Print only &lt;img&gt; tag'),'1' => t('Print &lt;img&gt; tag and the link to the image')),
   );
 
-  return $form;
+  return system_settings_form($form);
 }
 
 function inline_form_alter($form_id, &$form) {
@@ -109,7 +130,7 @@ function inline_filter_tips($delta, $for
 }
 
 function inline_nodeapi(&$node, $op, $arg) {
-  if(is_array($node->files) && $op == 'view') {
+  if(is_array($node->files) && $op == 'alter') {
     //only nodes with our inline filter in the format may be altered
     foreach (filter_list_format($node->format) as $filter) {
       if ($filter->module == 'inline') {
@@ -292,5 +313,4 @@ function _inline_decide_img_tag($file) {
     }
   }
   return FALSE;
-}
-?>
+}
\ No newline at end of file
