1 file.module file_type_get_types()

Returns a list of all the available file types.

This list can include types that are queued for addition or deletion. See _file_types_build() for details.

Return value

stdClass[]: An array of file types, as objects, keyed by the type.

See also

file_type_get_type()

File

core/modules/file/file.module, line 2332
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_type_get_types() {
  return _file_types_build()->types;
}