You are here

function file_type_get_enabled_types in File Entity (fieldable files) 7.3

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

Returns an array of enabled file types.

Related topics

5 calls to file_type_get_enabled_types()
file_entity_entity_info_alter in ./file_entity.module
Implements hook_entity_info_alter().
file_entity_file_type in ./file_entity.file.inc
Implements hook_file_type().
file_entity_pathauto in ./file_entity.pathauto.inc
Implements hook_pathauto().
file_entity_permissions_get_configured_types in ./file_entity.module
Returns an array of file types that should be managed by permissions.
file_entity_update_7208 in ./file_entity.install
Add expanded file type permissions to roles with existing file permissions.

File

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

Code

function file_type_get_enabled_types() {
  $types = file_type_load_all();
  return array_filter($types, 'file_type_is_enabled');
}