array( 'label' => t('SWF Tools'), 'field types' => array('file'), 'multiple values' => CONTENT_HANDLE_CORE, ), ); } /** * Implementation of hook_field_formatter_info(). */ function swftff_field_formatter($field, $item, $formatter, $node) { // Ensure that the file $item information is fully populated. if(!empty($item['fid'])) { $item = array_merge($item, _filefield_file_load($item['fid'])); } return theme('swftff', $item); } /** * Passes the theming on to SWF Tools. */ function theme_swftff($item = array()) { if (!is_array($item) || empty($item['fid'])) { return ''; } return swf($item['filename']); }