I was looking around the issues and didn't seem to find anything that asked for this feature spcificlly. I was able to find

http://drupal.org/node/38385

but it wasn't spcific enough. I made this code to look for url in the $settings array. The L function used automatically formats the url for relative paths if you don't put http:// and the following code is all you have to put in.

I'm not too familiar with drupal coding practices, but I hope I provided enough informaiton

/* $Id: acidfree.module,v 1.62.2.19 2006/06/09 17:26:23 vhmauery Exp $ */
            if ($f_width > $f_height)   {
                $style = "width: {$width}px;";
            } else {
                $style = "height: {$height}px;";
            }

//starting on line 1761
// code made by Granville of Kirkham Systems, Inc.  http://www.kirkhamsystems.com
// reach me with granville[at]kirkhamsystems.com.
/* $user_url defaults to node/##  I'm not sure what the $p and $from defaults to, or where it's defined. */
           if (array_key_exists('url',$settings)) {
               $user_url=$settings['url'];
           }else{
               $user_url="node/{$node->nid}{$p}{$from}";
           }
//end of code addition
           $ret .= l(theme('image', $fileurl, $node->title, $node->title, 
                        array('class' => 'acidfree-plain', 'style' => $style), false),
                    $user_url, NULL, NULL, NULL, FALSE, TRUE);
//code changed to include incoming user_url
                   // "node/{$node->nid}{$p}{$from}", NULL, NULL, NULL, FALSE, TRUE);
// end of code change.
        } else {
            $ret .= theme("acidfree_print_thumb_{$node->class}", $node);
        }
        $ret .= "</span>";
        return $ret;

hope this helps and if you do use it, don't forget to update the documentation to include the tag.

Comments

vhmauery’s picture

Status: Active » Closed (fixed)

done. Check out the latest release. Docs will be done within 12 hours or so (already committed to CVS).