You are here

function theme_book_export_html in Drupal 5

Same name and namespace in other branches
  1. 4 modules/book.module \theme_book_export_html()

How the book's HTML export should be themed

Related topics

1 theme call to theme_book_export_html()
book_export_html in modules/book/book.module
This function is called by book_export() to generate HTML for export.

File

modules/book/book.module, line 700
Allows users to collaboratively author a book.

Code

function theme_book_export_html($title, $content) {
  global $base_url;
  $html = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
  $html .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">';
  $html .= "\n<head>\n";
  $html .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
  $html .= "\n<title>" . $title . "</title>\n";
  $html .= '<base href="' . $base_url . '/" />' . "\n";
  $html .= "<style type=\"text/css\">\n@import url(misc/print.css);\n</style>\n";
  $html .= "</head>\n<body>\n" . $content . "\n</body>\n</html>\n";
  return $html;
}