function theme_file_entity_file_link

cis7 theme_file_entity_file_link($variables)
cle7 theme_file_entity_file_link($variables)
elmsmedia7 theme_file_entity_file_link($variables)
icor7 theme_file_entity_file_link($variables)
meedjum_blog7 theme_file_entity_file_link($variables)
mooc7 theme_file_entity_file_link($variables)

Copy of theme_file_file_link() for linking to the view file page.

See also


1 string reference to the theme hook from theme_file_entity_file_link()

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_entity_theme in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_theme().


sites/all/modules/ulmus/file_entity/, line 13
Theme callbacks for the file entity module.


function theme_file_entity_file_link($variables) {
  $file = $variables['file'];
  $icon_directory = $variables['icon_directory'];

  $url = 'file/' . $file->fid;
  $icon = theme('file_icon', array('file' => $file, 'icon_directory' => $icon_directory));

  // Set options as per anchor format described at
  $options = array(
    'attributes' => array(
      'type' => $file->filemime . '; length=' . $file->filesize,

  // Use the description as the link text if available.
  if (empty($file->description)) {
    $link_text = $file->filename;
  else {
    $link_text = $file->description;
    $options['attributes']['title'] = check_plain($file->filename);

  return '<span class="file">' . $icon . ' ' . l($link_text, $url, $options) . '</span>';



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.