What I am trying to do is change the text of the PDF link from the Print module to read "Case Study: [node:title]" with [node:title] obviously being the title of the current node. I have copied the appropriate function to my template.php file and renamed it. It is getting as far as changing the link text to "Case Study", but the node title part is giving me an error.
The relevant line from the function:
$print_pdf_link_text = filter_xss(variable_get('print_pdf_link_text', t('Case Study').": ".$vars['title']));
and the error:
Notice: Undefined variable: vars in bitcloud_print_pdf_format_link() (line 155 of /home/***/public_html/***/sites/all/themes/bitcloud/template.php).
Obviously $vars['title'] is wrong, but I don't know what to use instead and so far none of my google searches have been successful. I am using Drupal 7, and in case it matters, this is for a Zen subtheme. Any help would be appreciated.