On this page
function file_theme
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),
),
);
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!file!file.module/function/file_theme/7.x