print_pdf_insert_link() prints some markup and a link.

It would be very useful if this implemented a theme function so the markup could be overridden.

I assume the same goes for other print insert links.

Comments

jcnventura’s picture

Status: Active » Fixed

It's already themeable. Look for theme_print_format_link().

rooby’s picture

Status: Fixed » Active

Not entirely.

The code is this:

<?php
    $format = theme('print_pdf_format_link');
    return '<span class="print_pdf">' . l($format['text'], $path, array('attributes' => $format['attributes'], 'query' => $query, 'absolute' => TRUE, 'html' => $format['html'])) . '</span>';
?>

and I want to change the span markup wrapping the link.
theme_print_pdf_format_link() can't theme that, the only way you can modify that markup is by hacking the print module.

jcnventura’s picture

Status: Active » Closed (works as designed)

That span is not modifiable. It needs to be there. Upgrade to 2.x, for the only clean solution on removing that span.