public function SimplemetaEntityMetadataController::entityPropertyInfo in Simple Meta 7.2
Overrides EntityDefaultMetadataController::entityPropertyInfo
File
- ./
simplemeta.info.inc, line 127 - Entity API integration, classes, controllers, etc.
Class
- SimplemetaEntityMetadataController
- Class SimplemetaEntityMetadataController.
Code
public function entityPropertyInfo() {
$info = parent::entityPropertyInfo();
$properties =& $info[$this->type]['properties'];
$properties['path'] = array(
'type' => 'text',
'label' => t('Path'),
'description' => t('The Drupal path the SimpleMeta entity is related to.'),
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'path',
);
$properties['language'] = array(
'type' => 'text',
'label' => t('Source'),
'description' => t('Language of the SimpleMeta'),
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'language',
);
$properties['fit'] = array(
'type' => 'integer',
'label' => t('Fit'),
'description' => t('A numeric representation of how specific the path is'),
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'fit',
);
$properties['data'] = array(
'type' => 'struct',
'label' => t('Data'),
'description' => t('Stored metadata'),
'getter callback' => 'entity_property_verbatim_get',
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'data',
);
return $info;
}