I see that the last commited change was '#145458 nicholasThompson's patch to fix the hook_links implementation.', however it needs an additional attribute to 'fix' the hook_links func:

Change:
function upload_image_link($type, $node = 0, $main = 0) {
$links = array();
// Display a link with the number of attachments
if ($type == 'node' && $node->type == 'image') {
$image = db_fetch_object(db_query('SELECT u.oid, n.title, n.uid FROM {upload_images} u INNER JOIN {node} n ON u.oid = n.nid WHERE u.nid = %d', $node->nid));
if ($image->oid) {
$links['upload_image_link'] = array(
'title' => t('parent post: %title', array('%title' => check_plain($image->title))),
'href' => 'node/'. $image->oid,
'attributes' => array('title' => t('Read parent post to view all attached images.'))
);
}
}

return $links;
}

to

function upload_image_link($type, $node = 0, $main = 0) {
$links = array();
// Display a link with the number of attachments
if ($type == 'node' && $node->type == 'image') {
$image = db_fetch_object(db_query('SELECT u.oid, n.title, n.uid FROM {upload_images} u INNER JOIN {node} n ON u.oid = n.nid WHERE u.nid = %d', $node->nid));
if ($image->oid) {
$links['upload_image_link'] = array(
'title' => t('parent post: %title', array('%title' => check_plain($image->title))),
'href' => 'node/'. $image->oid,
'attributes' => array('title' => t('Read parent post to view all attached images.')),
'html'=>TRUE
);
}
}

return $links;
}

ie, add a HTML key set to true, otherwise the link displays as parent post:<em>Title</em>

CommentFileSizeAuthor
#3 upload_image_153391.patch819 bytesdrewish

Comments

drewish’s picture

Status: Active » Needs work

it's unclear to me what is changing here... could you provide a patch? http://drupal.org/patch/create

Papayoung’s picture

I had the same problem, same fix. Haven't yet figured out how to roll a patch, but line 18 (in v1.17.2.3) goes from

  'attributes' => array('title' => t('Read parent post to view all attached images.'))

to

  'attributes' => array('title' => t('Read parent post to view all attached images.')), 
  'html'=>TRUE
drewish’s picture

Status: Needs work » Fixed
StatusFileSize
new819 bytes

committing the attached to HEAD and DRUPAL-5

Anonymous’s picture

Status: Fixed » Closed (fixed)