1 file.module | file_type_get_names() |
Returns a list of available file type names.
This list can include types that are queued for addition or deletion. See _file_types_build() for details.
Return value
array: An array of file type names, keyed by the type.
File
- core/
modules/ file/ file.module, line 2347 - Defines a "managed_file" Form API field and a "file" field for Field module.
Code
function file_type_get_names() {
return _file_types_build()->names;
}