function theme_print_url_list in Printer, email and PDF versions 7.2
Returns HTML for the URL list of the print template.
Parameters
array $vars: An empty associative array.
Return value
string HTML text with the URL list
Related topics
1 theme call to theme_print_url_list()
- print.tpl.php in ./
print.tpl.php - Default theme implementation to display a printer-friendly version page.
File
- ./
print.pages.inc, line 345
Code
function theme_print_url_list($vars) {
global $_print_urls;
global $base_url;
// Display the collected links at the bottom of the page. Code once taken from
// Kjartan Mannes' project.module.
if (!empty($_print_urls)) {
$urls = _print_friendly_urls();
$url_list = '';
foreach ($urls as $key => $url) {
drupal_alter('print_url_list', $url);
$new_url = explode($base_url, $url);
$url_list .= "<a href=" . $new_url[1] . " target='_blank'>" . '[' . ($key + 1) . '] ' . check_plain($url) . "</a>\n";
}
if (!empty($url_list)) {
return "<p><strong>" . t('Links') . "</strong><br />{$url_list}</p>";
}
}
return '';
}