You are here

function file_entity_theme in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 8.2 file_entity.module \file_entity_theme()
  2. 7.3 file_entity.module \file_entity_theme()
  3. 7 file_entity.module \file_entity_theme()

Implements hook_theme().

File

./file_entity.module, line 868
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_theme() {
  return array(
    'file_entity' => array(
      'render element' => 'elements',
      'template' => 'file_entity',
    ),
    'file_entity_search_admin' => array(
      'render element' => 'form',
    ),
    'file_entity_file_type_overview' => array(
      'variables' => array(
        'label' => NULL,
        'description' => NULL,
      ),
      'file' => 'file_entity.admin.inc',
    ),
    'file_entity_file_display_order' => array(
      'render element' => 'element',
      'file' => 'file_entity.admin.inc',
    ),
    'file_entity_file_link' => array(
      'variables' => array(
        'file' => NULL,
        'icon_directory' => NULL,
      ),
      'file' => 'file_entity.theme.inc',
    ),
    'file_entity_download_link' => array(
      'variables' => array(
        'file' => NULL,
        'icon_directory' => NULL,
        'text' => NULL,
      ),
      'file' => 'file_entity.theme.inc',
    ),
    'file_entity_file_audio' => array(
      'variables' => array(
        'files' => array(),
        'controls' => TRUE,
        'controls_list' => array(
          'download' => 'download',
          'remote_playback' => 'remote_playback',
        ),
        'autoplay' => FALSE,
        'loop' => FALSE,
        'preload' => NULL,
      ),
      'file' => 'file_entity.theme.inc',
    ),
    'file_entity_file_video' => array(
      'variables' => array(
        'files' => array(),
        'controls' => TRUE,
        'controls_list' => array(
          'fullscreen' => 'fullscreen',
          'download' => 'download',
          'remote_playback' => 'remote_playback',
        ),
        'autoplay' => FALSE,
        'playsinline' => FALSE,
        'loop' => FALSE,
        'muted' => FALSE,
        'width' => NULL,
        'height' => NULL,
        'preload' => NULL,
      ),
      'file' => 'file_entity.theme.inc',
    ),
  );
}