You are here

function filefield_source_remote_info in FileField Sources 7

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

Implements hook_filefield_source_info().

File

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

Code

function filefield_source_remote_info() {
  if (filefield_sources_curl_enabled()) {
    $source = array();
    $source['remote'] = array(
      'name' => t('Remote URL textfield'),
      'label' => t('Remote URL'),
      'description' => t('Download a file from a remote server.'),
      'process' => 'filefield_source_remote_process',
      'value' => 'filefield_source_remote_value',
      'file' => 'sources/remote.inc',
    );
    return $source;
  }
}