function file_type_load

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 file_entity.file_api.inc file_type_load($name)
cle7 file_entity.file_api.inc file_type_load($name)
elmsmedia7 file_entity.file_api.inc file_type_load($name)
icor7 file_entity.file_api.inc file_type_load($name)
meedjum_blog7 file_entity.file_api.inc file_type_load($name)
mooc7 file_entity.file_api.inc file_type_load($name)

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()
file_entity_admin_files in sites/all/modules/ulmus/file_entity/file_entity.admin.inc
Form builder: Builds the file administration overview.
file_entity_file_type_form_submit in sites/all/modules/ulmus/file_entity/file_entity.admin.inc
Form submission handler for file_entity_file_type_form().
file_entity_list_permissions in sites/all/modules/ulmus/file_entity/file_entity.module
Helper function to generate standard file permission list for a given type.
file_entity_tokens in sites/all/modules/ulmus/file_entity/file_entity.tokens.inc
Implements hook_tokens().
file_type_delete in sites/all/modules/ulmus/file_entity/file_entity.file_api.inc
Deletes a file type from the database.

... See full list

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

File

sites/all/modules/ulmus/file_entity/file_entity.file_api.inc, line 416
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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.