You are here

function filefield_source_attach_info in FileField Sources 7

Same name and namespace in other branches
  1. 6 sources/attach.inc \filefield_source_attach_info()

Implements hook_filefield_source_info().

File

sources/attach.inc, line 15
A FileField extension to allow use of files within a server directory.

Code

function filefield_source_attach_info() {
  $source = array();
  $source['attach'] = array(
    'name' => t('File attach from server directory'),
    'label' => t('File attach'),
    'description' => t('Select a file from a directory on the server.'),
    'process' => 'filefield_source_attach_process',
    'value' => 'filefield_source_attach_value',
    'weight' => 3,
    'file' => 'sources/attach.inc',
  );
  return $source;
}