You are here

function filefield_source_clipboard_info in FileField Sources 7

Implements hook_filefield_source_info().

File

sources/clipboard.inc, line 15
A FileField extension to allow transfer of files through the clipboard.

Code

function filefield_source_clipboard_info() {
  $source = array();
  $source['clipboard'] = array(
    'name' => t('Paste from clipboard (<a href="http://drupal.org/node/1775902">limited browser support</a>)'),
    'label' => t('Clipboard'),
    'description' => t('Allow users to paste a file directly from the clipboard.'),
    'process' => 'filefield_source_clipboard_process',
    'value' => 'filefield_source_clipboard_value',
    'weight' => 1,
    'file' => 'sources/clipboard.inc',
  );
  return $source;
}