function _ref_fieldl_autocomplete_access in (Entity)Reference Field Synchronization 7
1 string reference to '_ref_fieldl_autocomplete_access'
- ref_field_menu in ./
ref_field.module - Implements hook_menu().
File
- ./
ref_field.module, line 524
Code
function _ref_fieldl_autocomplete_access($instance_id, $field_name, $entity_type, $bundle_name) {
$field = field_info_field($field_name);
$instance = field_info_instance($entity_type, $field_name, $bundle_name);
if ($field && $instance && field_access('edit', $field, $entity_type)) {
return TRUE;
}
return FALSE;
}