function _filefield_sources_field_access in FileField Sources 7
Menu access callback; Checks user access to edit a file field.
3 string references to '_filefield_sources_field_access'
- filefield_source_clipboard_menu in sources/
clipboard.inc - Implements hook_menu().
- filefield_source_imce_menu in sources/
imce.inc - Implements hook_menu().
- filefield_source_reference_menu in sources/
reference.inc - Implements hook_menu().
File
- ./
filefield_sources.module, line 716 - Extend FileField to allow files from multiple sources.
Code
function _filefield_sources_field_access($entity_type, $bundle_name, $field_name) {
$field = field_info_field($field_name);
return field_access('edit', $field, $entity_type);
}