function file_entity_entity_property_info

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

Implements hook_entity_property_info().

File

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

Code

function file_entity_entity_property_info() {
  $info['file']['properties']['type'] = array(
    'label' => t('File type'),
    'type' => 'token',
    'description' => t('The type of the file.'),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'administer files',
    'options list' => 'file_entity_type_get_names',
    'required' => TRUE,
    'schema field' => 'type',
  );

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