function theme_file_managed_file


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 file.module theme_file_managed_file($variables)
cle7 file.module theme_file_managed_file($variables)
elmsmedia7 file.module theme_file_managed_file($variables)
icor7 file.module theme_file_managed_file($variables)
meedjum_blog7 file.module theme_file_managed_file($variables)
mooc7 file.module theme_file_managed_file($variables)

Returns HTML for a managed file element.


$variables: An associative array containing:

  • element: A render element representing the file.

Related topics

3 string references to the theme hook from theme_file_managed_file()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

file_element_info in modules/file/file.module
Implements hook_element_info().
file_theme in modules/file/file.module
Implements hook_theme().
multiupload_filefield_widget_element_info in sites/all/modules/ulmus/multiupload_filefield_widget/multiupload_filefield_widget.module
Implements hook_element_info().


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


function theme_file_managed_file($variables) {
  $element = $variables['element'];

  $attributes = array();
  if (isset($element['#id'])) {
    $attributes['id'] = $element['#id'];
  if (!empty($element['#attributes']['class'])) {
    $attributes['class'] = (array) $element['#attributes']['class'];
  $attributes['class'][] = 'form-managed-file';

  // This wrapper is required to apply JS behaviors and CSS styling.
  $output = '';
  $output .= '<div' . drupal_attributes($attributes) . '>';
  $output .= drupal_render_children($element);
  $output .= '</div>';
  return $output;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.