';
}
foreach ($file_formatter_info['css'] as $css_path) {
drupal_add_css($css_path);
}
$settings = isset($field['file_formatters'][$file_formatter_info['key']])
? $field['file_formatters'][$file_formatter_info['key']]
: NULL;
return '
'.
theme($file_formatter_info['theme'], (object)$file, $field, $settings)
.'
';
}
/**
* Theme function for the 'generic' single file formatter.
*/
function theme_filefield_file_formatter_generic($file, $field, $file_formatter_settings) {
$path = $file->filepath;
$url = file_create_url($path);
$icon = theme('filefield_icon', $file);
$desc = $file->description;
return ''. $icon . l($desc, $url) .'
';
}