You are here

function pdfpreview_theme in PDFPreview 7

Same name and namespace in other branches
  1. 8 pdfpreview.module \pdfpreview_theme()
  2. 6 pdfpreview.module \pdfpreview_theme()
  3. 7.2 pdfpreview.module \pdfpreview_theme()
  4. 2.0.x pdfpreview.module \pdfpreview_theme()

Implements hook_theme().

File

./pdfpreview.module, line 92
This file contains hooks for the pdfpreview module

Code

function pdfpreview_theme() {
  $theme = array(
    'file_default' => array(
      'function' => 'theme_pdfpreview_formatter',
      'variables' => array(
        'element' => NULL,
      ),
    ),
  );

  //  if (module_exists('imagecache')) {
  //    foreach (imagecache_presets() as $preset) {
  //      $theme['pdfpreview_formatter_'. $preset['presetname'] . '][pdfpreview'] = array(
  //        'function' => 'theme_pdfpreview_formatter',
  //        'arguments' => array('element' => NULL),
  //      );
  //    }
  //  }
  return $theme;
}