You are here

function file_type_is_disabled 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_disabled()

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

Related topics

1 string reference to 'file_type_is_disabled'
file_type_get_disabled_types in ./file_entity.file_api.inc
Returns an array of disabled file types.

File

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

Code

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