You are here

function file_type_load 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()

Load a file type configuration object.

Parameters

string $name: The file type machine name to load.

Return value

object The file type object, or FALSE if it does not exist.

Related topics

10 calls to file_type_load()
FileEntityTypeTestCase::testCreate in ./file_entity.test
Test creating a new type. Basic CRUD.
FileEntityUploadWizardTestCase::testFileEntityUploadWizardStepSkipping in ./file_entity.test
Test skipping each of the file upload wizard steps.
file_entity_admin_files in ./file_entity.admin.inc
Form builder: Builds the file administration overview.
file_entity_edit in ./file_entity.pages.inc
Page callback: Form constructor for the file edit form.
file_entity_file_type_form_submit in ./file_entity.admin.inc
Form submission handler for file_entity_file_type_form().

... See full list

1 string reference to 'file_type_load'
file_entity_file_type_form in ./file_entity.admin.inc
Form constructor for the file type settings form.

File

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

Code

function file_type_load($name) {
  ctools_include('export');
  $type = ctools_export_crud_load('file_type', $name);
  return isset($type) ? $type : FALSE;
}