You are here

function file_theme in Zircon Profile 8

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

Implements hook_theme().

File

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

Code

function file_theme() {
  return array(
    // From file.module.
    'file_link' => array(
      'variables' => array(
        'file' => NULL,
        'description' => NULL,
        'attributes' => array(),
      ),
    ),
    'file_managed_file' => array(
      'render element' => 'element',
    ),
    // From file.field.inc.
    'file_widget_multiple' => array(
      'render element' => 'element',
      'file' => 'file.field.inc',
    ),
    'file_upload_help' => array(
      'variables' => array(
        'description' => NULL,
        'upload_validators' => NULL,
        'cardinality' => NULL,
      ),
      'file' => 'file.field.inc',
    ),
  );
}