1 file.module file_theme()

Implements hook_theme().

File

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

Code

function file_theme() {
  $base = array(
    'file' => 'file.theme.inc',
  );

  return array(
    'file_entity' => array(
      'render element' => 'elements',
      'template' => 'templates/file',
    ) + $base,
    'file_link' => array(
      'variables' => array('file' => NULL, 'icon_directory' => NULL, 'attributes' => array()),
    ) + $base,
    'file_icon' => array(
      'variables' => array('file' => NULL, 'icon_directory' => NULL, 'alt' => ''),
    ) + $base,
    'file_managed_file' => array(
      'render element' => 'element',
    ) + $base,
    'file_widget' => array(
      'render element' => 'element',
    ) + $base,
    'file_widget_multiple' => array(
      'render element' => 'element',
    ) + $base,
    'file_formatter_table' => array(
      'variables' => array('items' => NULL),
    ) + $base,
    'file_upload_help' => array(
      'variables' => array('description' => NULL, 'upload_validators' => NULL),
    ) + $base,
    'file_type_overview' => array(
      'variables' => array('name' => NULL, 'description' => NULL),
    ) + $base,
    'file_display_order' => array(
      'render element' => 'element',
    ) + $base,
    'file_download_link' => array(
      'variables' => array('file' => NULL, 'icon_directory' => NULL, 'text' => NULL),
    ) + $base,
    'file_audio' => array(
      'variables' => array(
        'files' => array(),
        'controls' => TRUE,
        'autoplay' => FALSE,
        'loop' => FALSE,
        'preload' => NULL,
      ),
    ) + $base,
    'file_video' => array(
      'variables' => array(
        'files' => array(),
        'controls' => TRUE,
        'autoplay' => FALSE,
        'loop' => FALSE,
        'muted' => FALSE,
        'width' => NULL,
        'height' => NULL,
        'preload' => NULL,
      ),
    ) + $base,
  );
}