You are here

function file_type_load_all in File Entity (fieldable files) 7.3

Same name and namespace in other branches
  1. 7.2 file_entity.file_api.inc \file_type_load_all()

Load all file type configuration objects.

This includes all enabled and disabled file types.

Parameters

bool $reset: If TRUE, the static cache of all file types will be flushed prior to loading. This can be important on listing pages where file types might have changed on the page load.

Return value

array An array of file type objects, keyed by machine name.

See also

file_type_get_enabled_types()

file_type_get_disabled_types()

Related topics

5 calls to file_type_load_all()
file_entity_list_types_page in ./file_entity.admin.inc
Displays the file type admin overview page.
file_entity_uninstall in ./file_entity.install
Implements hook_uninstall().
file_entity_update_7210 in ./file_entity.install
Merge MIME types into the {file_type} table.
file_type_get_disabled_types in ./file_entity.file_api.inc
Returns an array of disabled file types.
file_type_get_enabled_types in ./file_entity.file_api.inc
Returns an array of enabled file types.

File

./file_entity.file_api.inc, line 482
API extensions of Drupal core's file.inc.

Code

function file_type_load_all($reset = FALSE) {
  ctools_include('export');
  return ctools_export_crud_load_all('file_type', $reset);
}