function filefield_edit_access in FileField 6.3
Same name and namespace in other branches
- 6.2 filefield.module \filefield_edit_access()
Access callback for AHAH upload/delete callbacks and node form validation.
The content_permissions module provides nice fine-grained permissions for us to check, so we can make sure that the user may actually edit the file.
1 call to filefield_edit_access()
- filefield_node_form_validate in ./
filefield_widget.inc - Additional #validate handler for the node form.
1 string reference to 'filefield_edit_access'
- filefield_menu in ./
filefield.module - Implementation of hook_menu().
File
- ./
filefield.module, line 567 - FileField: Defines a CCK file field type.
Code
function filefield_edit_access($type_name, $field_name, $node = NULL) {
return content_access('edit', content_fields($field_name, $type_name), NULL, $node);
}