You are here

public function NodeGalleryRelationshipMetadataController::entityPropertyInfo in Node Gallery 7

Overrides EntityDefaultMetadataController::entityPropertyInfo

File

./node_gallery_api.inc, line 1074
Node Gallery API function

Class

NodeGalleryRelationshipMetadataController
Metadata Controller for Node Gallery Relationships

Code

public function entityPropertyInfo() {
  $info = parent::entityPropertyInfo();
  $properties =& $info[$this->type]['properties'];
  $properties['nid']['type'] = 'node';
  $properties['nid']['label'] = t('Gallery Item');
  $properties['nid']['description'] = t('The Gallery Item associated with the Node Gallery relationship');
  $properties['ngid']['type'] = 'node';
  $properties['ngid']['label'] = t('Gallery');
  $properties['ngid']['description'] = t('The Gallery associated with the Node Gallery relationship');
  $properties['relationship_type']['type'] = 'node_gallery_relationship_type';
  $properties['relationship_type']['label'] = t('Relationship Type');
  $properties['relationship_type']['description'] = t('The Relationship Type of the Node Gallery relationship.');
  $properties['weight']['label'] = t('Item Weight (Sort Order)');
  $properties['weight']['description'] = t('The Item Weight (sort order) of the Node Gallery relationship.');
  return $info;
}