theme_file_managed_file

  1. drupal
    1. 7
Versions
7 theme_file_managed_file($variables)

Returns HTML for a managed file element.

Parameters

$variables An associative array containing:

  • element: A render element representing the file.

Related topics

Code

drupal/modules/file/file.module, line 643

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

  // This wrapper is required to apply JS behaviors and CSS styling.
  $output = '';
  $output .= '<div class="form-managed-file">';
  $output .= drupal_render_children($element);
  $output .= '</div>';
  return $output;
}
?>