You are here

function pdf_reader_theme in PDF Reader 7

Same name and namespace in other branches
  1. 8 pdf_reader.module \pdf_reader_theme()
  2. 7.2 pdf_reader.module \pdf_reader_theme()

Implements hook_theme().

Use our theme function.

File

./pdf_reader.module, line 143
pdf reader module file.

Code

function pdf_reader_theme($existing, $type, $theme, $path) {
  return array(
    'pdf_reader' => array(
      'variables' => array(
        'file' => NULL,
        'settings' => NULL,
      ),
    ),
    'pdf_js' => array(
      'template' => 'pdf_js',
      'path' => drupal_get_path('module', 'pdf_reader') . '/theme',
    ),
  );
}