--- piclens.module.orig	2008-08-07 20:58:18.000000000 +0200
+++ piclens.module	2008-08-07 21:08:32.000000000 +0200
@@ -246,10 +246,10 @@
  * drupal_set_message function to insert the link into $messages
  * or just return the link.
  */
-function mediarssapi_piclens_lite_link($image_or_text = '', $drupal_set_message = false) {
+function mediarssapi_piclens_lite_link($image_or_text = '', $drupal_set_message = false, $url = '') {
   $display = return_display_check();
   if ($display == TRUE) {
-    $html = theme('piclens_lite_html_link', $image_or_text);
+    $html = theme('piclens_lite_html_link', $image_or_text, $url);
     if ($drupal_set_message == TRUE)
     drupal_set_message($html);
     else
@@ -257,12 +257,13 @@
   }
 }
 
-function theme_piclens_lite_html_link($image_or_text) {
+function theme_piclens_lite_html_link($image_or_text, $url) {
   $path = drupal_get_path('module', 'piclens');
+  $url = (!empty($url)) ? '{feedUrl:\'' . url($url, NULL, NULL, TRUE) . '\'}' : '';
   if (empty($image_or_text))
-  return '<div id="piclenslite"><a href="javascript:PicLensLite.start();">'. t('Start Slideshow') .' '. theme('image', $path .'/PicLensButton.png', 'PicLens', 'PicLens', array('width' => '16', 'height' => '12',  'border' => '0',  'align' => 'absmiddle')) .'</a></div>';
+  return '<div id="piclenslite"><a href="javascript:PicLensLite.start('. $url .');">'. t('Start Slideshow') .' '. theme('image', $path .'/PicLensButton.png', 'PicLens', 'PicLens', array('width' => '16', 'height' => '12',  'border' => '0',  'align' => 'absmiddle')) .'</a></div>';
   else
-  return '<a href="javascript:PicLensLite.start();">'. $image_or_text .'</a>';
+  return '<a href="javascript:PicLensLite.start('. $url .');">'. $image_or_text .'</a>';
 }
 
 /**
