You are here

function _list_pdfs in Views PDF 7.3

Same name and namespace in other branches
  1. 7 views_pdf.admin.inc \_list_pdfs()

Return a list of available PDFs.

Return value is a sorted array, keyed by the full name of the file, values are the names without extensions.

The PDF storage path is returned via the reference argument.

2 calls to _list_pdfs()
views_pdf_templates in ./views_pdf.admin.inc
Page to manage PDF templates.
views_pdf_template_delete in ./views_pdf.admin.inc
Delete a PDF template.

File

./views_pdf.admin.inc, line 104
Theme function for enhence the views admin interface vor PDF options.

Code

function _list_pdfs(&$pdf_dir) {
  $pdf_dir = variable_get('views_pdf_template_stream', 'public://views_pdf_templates');
  $pdfs = views_pdf_get_pdf_templates();
  asort($pdfs);
  return $pdfs;
}