You are here

function file_entity_theme in File Entity (fieldable files) 7

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.2 file_entity.module \file_entity_theme()

Implements hook_theme().

File

./file_entity.module, line 186
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_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,
      ),
    ),
  );
}