You are here

function file_theme in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/file/file.module \file_theme()
  2. 9 core/modules/file/file.module \file_theme()

Implements hook_theme().

File

modules/file/file.module, line 88
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_theme() {
  return array(
    // file.module.
    'file_link' => array(
      'variables' => array(
        'file' => NULL,
        'icon_directory' => NULL,
      ),
    ),
    'file_icon' => array(
      'variables' => array(
        'file' => NULL,
        'icon_directory' => NULL,
        'alt' => '',
      ),
    ),
    'file_managed_file' => array(
      'render element' => 'element',
    ),
    // file.field.inc.
    'file_widget' => array(
      'render element' => 'element',
    ),
    'file_widget_multiple' => array(
      'render element' => 'element',
    ),
    'file_formatter_table' => array(
      'variables' => array(
        'items' => NULL,
      ),
    ),
    'file_upload_help' => array(
      'variables' => array(
        'description' => NULL,
        'upload_validators' => NULL,
      ),
    ),
  );
}