# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- /insert/includes/insert.inc
+++ /insert/includes/insert.inc
@@ -19,7 +19,7 @@
 /**
  * Implementation of hook_insert_content().
  */
-function insert_insert_content($item, $style, $widget) {
+function insert_insert_content($item, $style, $widget, $entity) {
   $style_name = $style['name'];
 
   if (empty($item['fid'])) {
@@ -35,7 +35,7 @@
   }
 
   if ($style_name == 'image') {
-    return theme('insert_image', array('item' => $item, 'widget' => $widget));
+    return theme('insert_image', array('item' => $item, 'widget' => $widget, 'entity' => $entity));
   }
   else {
     return theme('insert_link', array('item' => $item, 'widget' => $widget));
