How to download file by clicking on icon in file module? I have a File field in drupal 7 (with file module) which I forced with views to display as an icon and name of the file which uploaded. The Name displays as a link (to download file). Now I want to link the icon to the file too. So when users click on the icon they would be available to download file (and I prefer to exclude the name from display).
What should I do now to make the icon as a download link?
Thanks.
I guess the problem is that 'html' in $options is set to FALSE by default, thus stripping the icon html code generated by theme().

I tried modifying a bit the code above and it worked perfectly:

/**
 * Implements theme_file_link().
 */
function yourtheme_file_link($variables) {
  $file = $variables['file'];
  $icon_directory = $variables['icon_directory'];

  $url = file_create_url($file-&gt;uri);
  $icon = theme('file_icon', array('file' =&gt; $file, 'icon_directory' =&gt;     $icon_directory));

  // Set options as per anchor format described at
  // http://microformats.org/wiki/file-format-examples
  $options = array(
    'attributes' =&gt; array(
      'type' =&gt; $file-&gt;filemime . '; length=' . $file-&gt;filesize,
    ),
  );

  // Updating 'html' to TRUE so that the html code to display the icon is     printed
  $options += array(
    'html' =&gt; TRUE,
  );


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

  return '&lt;span class="file"&gt;' . l($icon, $url, $options) . ' ' .     l($link_text, $url, $options) . '&lt;/span&gt;';
}


Note that I added 3 lines (plus a commented line, 4) to update the value of HTML.