You are here

function file_type_is_enabled in File Entity (fieldable files) 7.3

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

Returns TRUE if a file type is enabled, FALSE otherwise.

Related topics

1 string reference to 'file_type_is_enabled'
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 506
API extensions of Drupal core's file.inc.

Code

function file_type_is_enabled($type) {
  return empty($type->disabled);
}