You are here

function print_pdf_cache_dir in Printer, email and PDF versions 7.2

Returns the cache directory.

Return value

string The scheme://path of the cache directory

4 calls to print_pdf_cache_dir()
print_pdf_cache_clean in print_pdf/print_pdf.module
Removes pdf files for nodes/paths if they are older than the lifetime.
print_pdf_cache_delete in print_pdf/print_pdf.module
Deletes one or more files from the PDF cache directory.
print_pdf_generate_path in print_pdf/print_pdf.pages.inc
Gennerate a PDF for a given Drupal path.
print_pdf_init in print_pdf/print_pdf.module
Implements hook_init().

File

print_pdf/print_pdf.module, line 391
Displays Printer-friendly versions of Drupal pages.

Code

function print_pdf_cache_dir() {
  global $language_url;
  $scheme = 'private';
  if (!file_stream_wrapper_valid_scheme($scheme)) {
    $scheme = 'temporary';
  }
  return $scheme . '://print_pdf/cache/' . $language_url->language;
}