Active
Project:
Flickr nodes
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2009 at 20:57 UTC
Updated:
28 Sep 2009 at 20:57 UTC
I was using drupal translations and didn't want to re-tag all the images on flickr for each translated pages. So what I've done is replaced the code in the function flickr_node_get_tag to get the translation set id (if it exists) instead of the node id. IOW replacing:
// Get Flickr nodes variables
$namespace = _flickr_nodes_variable('prefix');
$predicate = $node->type;
$value = $node->nid;
with
// Get Flickr nodes variables
$namespace = _flickr_nodes_variable('prefix');
$predicate = $node->type;
$value = $node->nid;
if ($node->tnid != 0) $value = $node->tnid;