When accessing the module's theme functions in template.php the theme_flickr_photo function is unavailable to be overridden. I believe this is because of the calls in flickr_block.module (line 196)

<?php 
function theme_flickr_block_photo($p, $size = NULL) {
  return theme_flickr_photo($p, $size);
}
?>

and in flickr_filter.module (line 107)

<?php 
function theme_flickr_filter_photo($p, $size, $attribs) {
  return theme_flickr_photo($p, $size, NULL, $attribs);
}
?>

If the call is changed to:

 <?php
  return theme('flickr_photo', $p, $size, /* ...etc */ );
?>

theme_flickr_photo would be passed to template.php.

CommentFileSizeAuthor
#2 theme_flickr.patch1.59 KBrho_

Comments

andrewlevine’s picture

Category: feature » bug

thanks, this is a bug. no time to fix now, but if you submit a patch it will be committed.

rho_’s picture

Assigned: Unassigned » rho_
Status: Active » Needs review
StatusFileSize
new1.59 KB

Here's the patch. Was done from sites/all/modules directory. Peace.

rho_’s picture

BUMP Anyone tested this patch yet? Its worked great for me, and I think it would really help people themeing with this module if it were committed.

HorsePunchKid’s picture

Status: Needs review » Reviewed & tested by the community

Hi, Rho_pare. I came across your tip on using thickbox with this module, and before I noticed that you had submitted a patch, I had already filed a duplicate issue along with a patch (*slaps forehead*). Your patch is identical to mine except that mine patches the same two functions in the block module, too.

I have tested it out, and I think it's working just fine. Applies to 5.x-1.1 and should apply to the dev version, too.

Thanks for the tip on using thickbox. :)

drewish’s picture

Status: Reviewed & tested by the community » Fixed

Rho_pare, thanks for the patch it's been committed to DRUPAL-5.
HorsePunchKid, thanks for the review and your other patches.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.