--- ulink_imagecache.module 2008-04-13 10:48:27.000000000 -0400 +++ ulink_imagecache.module 2008-04-13 12:18:21.000000000 -0400 @@ -16,6 +16,7 @@ function ulink_imagecache_ulink_image($l $preset = $link['attributes']['preset'] ? $link['attributes']['preset'] : variable_get('ulink_imagecache_settings_full_preset_image', ''); if (strlen($preset) && in_array($preset, _imagecache_get_presets())) { + unset($link['attributes']['preset']); //this isn't valid xhtml, so don't output it with the other attributes $image = theme('imagecache', $preset, $link['path'], $link['attributes']['alt'], $link['attributes']['title'], $link['attributes']); } else { @@ -99,7 +100,7 @@ function _ulink_imagecache_base_settings '#options' => _ulink_imagecache_preset_options(), '#default_value' => variable_get('ulink_imagecache_settings_full_preset_' . $type, ''), '#description' => 'Render the image using this imagecache preset
- Can be overriden with preset=name in link attributes eg. [l|files/image.jpg||preset=small]. Use preset=none bypass imageache processing entirely.', + Can be overriden with preset=name in link attributes eg. [l|files/image.jpg|text|preset=small]. Use preset=none bypass imageache processing entirely.', ); return $form; } @@ -111,4 +112,4 @@ function _ulink_imagecache_preset_option $options[$name] = $name; } return $options; -} \ No newline at end of file +}