You are here

public function TMGMTLocalTaskItemMetadataController::entityPropertyInfo in Translation Management Tool 7

Overrides EntityDefaultMetadataController::entityPropertyInfo

File

translators/tmgmt_local/includes/tmgmt_local.info.inc, line 75
Contains the metadata controller classes for the local task translatio entity.

Class

TMGMTLocalTaskItemMetadataController
Metadata controller for the local task entity.

Code

public function entityPropertyInfo() {
  $info = parent::entityPropertyInfo();
  $properties =& $info[$this->type]['properties'];

  // Add the options list for the defined status constants.
  $properties['status']['options list'] = 'tmgmt_local_task_item_statuses';

  // Link the job property to the corresponding job entity.
  $properties['tjiid']['type'] = 'tmgmt_job_item';

  // Link the author property to the corresponding user entity.
  $properties['tltid']['type'] = 'tmgmt_local_task';
  return $info;
}