You are here

class QuizMetadataController in Quiz 7.5

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

Hierarchy

Expanded class hierarchy of QuizMetadataController

1 string reference to 'QuizMetadataController'
quiz_entity_info in ./quiz.module
Implements hook_entity_info().

File

includes/QuizMetadataController.class.inc, line 3

View source
class QuizMetadataController extends EntityDefaultMetadataController {
  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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EntityDefaultMetadataController::$type protected property
EntityDefaultMetadataController::bundleOptionsList public static function A options list callback returning all bundles for an entity type.
EntityDefaultMetadataController::convertSchema protected function Return a set of properties for an entity based on the schema definition
EntityDefaultMetadataController::__construct public function
QuizMetadataController::entityPropertyInfo public function Overrides EntityDefaultMetadataController::entityPropertyInfo