function file_entity_type_get_names

cis7 file_entity.module file_entity_type_get_names()
cle7 file_entity.module file_entity_type_get_names()
elmsmedia7 file_entity.module file_entity_type_get_names()
icor7 file_entity.module file_entity_type_get_names()
meedjum_blog7 file_entity.module file_entity_type_get_names()
mooc7 file_entity.module file_entity_type_get_names()

Returns a list of available file type names.

Return value

An array of file type names, keyed by the type.

8 calls to file_entity_type_get_names()
file_entity_admin_menu_map in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_admin_menu_map().
file_entity_field_extra_fields in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_field_extra_fields().
file_entity_form_search_form_alter in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_form_FORM_ID_alter().
file_entity_search_execute in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_search_execute().
file_filters in sites/all/modules/ulmus/file_entity/file_entity.admin.inc
List file administration filters that can be applied.

... See full list

1 string reference to 'file_entity_type_get_names'
file_entity_entity_property_info in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_entity_property_info().

File

sites/all/modules/ulmus/file_entity/file_entity.module, line 1473
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_type_get_names() {
  $names = &drupal_static(__FUNCTION__);

  if (!isset($names)) {
    $info = entity_get_info('file');
    foreach ($info['bundles'] as $bundle => $bundle_info) {
      $names[$bundle] = $bundle_info['label'];
    }
  }

  return $names;
}
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.