function filefield_source_clipboard_page in FileField Sources 7
Handles the uploading of a file through a POST request.
1 string reference to 'filefield_source_clipboard_page'
- filefield_source_clipboard_menu in sources/
clipboard.inc - Implements hook_menu().
File
- sources/
clipboard.inc, line 165 - A FileField extension to allow transfer of files through the clipboard.
Code
function filefield_source_clipboard_page($entity_type, $bundle_name, $field_name) {
global $conf;
// Check access.
if (!($instance = field_info_instance($entity_type, $field_name, $bundle_name))) {
return drupal_access_denied();
}
$field = field_info_field($field_name);
module_load_include('inc', 'imce', 'inc/imce.page');
return imce($field['settings']['uri_scheme']);
}