t('File attach from Flickr'), 'label' => t('Flickr'), 'description' => t('Select a file from Flickr.'), // This callback function does all the heavy-work of creating a form element // to choose a Flickr photo and populate a field. For an example, see // filefield_source_remote_process(). 'process' => 'mymodule_filefield_source_flickr_process', // This callback function then takes the value of that field and saves the // file locally. For an example, see filefield_source_remote_value(). 'value' => 'mymodule_filefield_source_flickr_value', 'weight' => 3, ); return $sources; }