You are here

function filefield_source_reference_info in FileField Sources 6

Same name and namespace in other branches
  1. 7 sources/reference.inc \filefield_source_reference_info()

Implements hook_filefield_source_info().

File

sources/reference.inc, line 17
A FileField extension to allow referencing of existing files.

Code

function filefield_source_reference_info() {
  $source = array();
  $source['reference'] = array(
    'name' => t('Autocomplete reference textfield'),
    'label' => t('Reference existing'),
    'description' => t('Reuse an existing file by entering its file name.'),
    'process' => 'filefield_source_reference_process',
    'value' => 'filefield_source_reference_value',
    'weight' => 1,
  );
  return $source;
}