function get_file_fields in Default Content 7
Same name and namespace in other branches
- 7.2 plugins/file.inc \get_file_fields()
Helper function to get all file fields
2 calls to get_file_fields()
- file_export_alter in plugins/
file.inc - Prepares file field for export to code
- file_import_alter in plugins/
file.inc - Prepares file field for import
File
- plugins/
file.inc, line 89
Code
function get_file_fields() {
$ref_fields = array();
foreach (field_info_fields() as $id => $field) {
if (in_array($field['type'], array(
'image',
'file',
))) {
$ref_fields[$id] = $field;
}
}
return $ref_fields;
}