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;
}