You are here

function emthumb_theme in Embedded Media Field 6.2

Same name and namespace in other branches
  1. 6.3 contrib/emthumb/emthumb.module \emthumb_theme()
  2. 6 contrib/emthumb/emthumb.module \emthumb_theme()

Implementation of hook_theme().

File

contrib/emthumb/emthumb.module, line 833
Allows for custom thumbnail overrides to Embedded Media Field.

Code

function emthumb_theme() {
  $themes = array(
    'emthumb_view_image' => array(
      'arguments' => array(
        'file' => NULL,
        'alt' => '',
        'title' => '',
        'attributes' => NULL,
        'getsize' => TRUE,
      ),
    ),
    'emthumb_edit_image_row' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'emthumb_image' => array(
      'arguments' => array(
        'file' => NULL,
        'alt' => '',
        'title' => '',
        'attributes' => NULL,
        'getsize' => TRUE,
      ),
    ),
    'emthumb_multiple' => array(
      'arguments' => array(
        'images' => NULL,
      ),
    ),
    'emthumb_widget' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
  );
  if (module_exists('imagecache')) {
    foreach (imagecache_presets() as $preset) {
      $themes['emthumb_formatter_' . $preset['presetname'] . '_default'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_default',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_linked'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_linked',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_imagelink'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_imagelink',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_path'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_path',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_url'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_url',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_providerlink'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_provider_link',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_full'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_full',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_preview'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_preview',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_colorbox'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_colorbox',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_thickbox'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_thickbox',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_lightbox2'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_lightbox2',
        'file' => 'emthumb.theme.inc',
      );
      $themes['emthumb_formatter_' . $preset['presetname'] . '_shadowbox'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_emthumb_imagecache_formatter_shadowbox',
        'file' => 'emthumb.theme.inc',
      );
    }
  }
  return $themes;
}