array( 'type' => $file['filemime'] . '; length=' . $file['filesize'], ), ); // Use the description as the link text if available. if (empty($file['data']['description'])) { $link_text = $file['filename']; } else { $link_text = $file['data']['description']; $options['attributes']['title'] = $file['filename']; } return '
'. $icon . l($link_text, $url, $options) .'
'; }