--- ulink_imagecache.module.orig	2008-04-13 10:48:27.000000000 -0400
+++ ulink_imagecache.module.new2	2008-04-13 13:11:44.000000000 -0400
@@ -25,6 +25,9 @@ function ulink_imagecache_ulink_image($l
   
   if (variable_get('ulink_imagecache_settings_full_link', 0)) {
     $linkattr = ulink_create_attribute_array(variable_get('ulink_imagecache_settings_full_link_attr', ''));
+    if (variable_get('ulink_imagecache_settings_full_link_title_attr', 0)) {
+      $linkattr['title'] = $link['attributes']['title'];
+    }
     $preset = variable_get('ulink_imagecache_settings_full_link_preset', '');
     if (strlen($preset) && in_array($preset, _imagecache_get_presets())) {
       // The full size image link is actually another imagecache processed image - 
@@ -81,6 +84,13 @@ function ulink_imagecache_ulink_image_se
     '#description' => 'Attributes for thumbnail link to full size image',
   );
 
+  $form['link']['ulink_imagecache_settings_full_link_title_attr'] = array(
+    '#title' => t('Use Image Title as Link Title Attribute'),
+    '#type' => 'checkbox',
+    '#default_value' => variable_get('ulink_imagecache_settings_full_link_title_attr', 0),
+    '#description' => t('Should the value of the image title attribute be output as the link\'s title attribute as well? This is usefull for passing a caption value to modules like thickbox or lightbox2.'),
+  );
+
   $form['link']['ulink_imagecache_settings_full_link_preset'] = array(
     '#title' => t('Full Size Preset'),    
     '#type' => 'select',
@@ -111,4 +121,4 @@ function _ulink_imagecache_preset_option
     $options[$name] = $name;
   }  
   return $options;
-}
\ No newline at end of file
+}
