You are here

public function QuizMetadataController::entityPropertyInfo in Quiz 7.5

Same name and namespace in other branches
  1. 7.6 includes/QuizMetadataController.class.inc \QuizMetadataController::entityPropertyInfo()

Overrides EntityDefaultMetadataController::entityPropertyInfo

File

includes/QuizMetadataController.class.inc, line 5

Class

QuizMetadataController

Code

public function entityPropertyInfo() {
  $info = parent::entityPropertyInfo();
  $info['node']['properties']['quiz']['label'] = t('Quiz');
  $info['node']['properties']['quiz']['description'] = t('Quiz properties');
  $info['node']['properties']['quiz']['type'] = 'quiz';
  $info['quiz']['properties']['quiz_open']['label'] = 'Open date';
  $info['quiz']['properties']['quiz_open']['type'] = 'date';
  $info['quiz']['properties']['quiz_close']['label'] = 'Close date';
  $info['quiz']['properties']['quiz_close']['type'] = 'date';
  return $info;
}