function file_entity_entity_property_info in File Entity (fieldable files) 7.3
Same name and namespace in other branches
- 7.2 file_entity.module \file_entity_entity_property_info()
Implements hook_entity_property_info().
File
- ./
file_entity.module, line 1027 - 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;
}