class QuizMetadataController in Quiz 7.5
Same name and namespace in other branches
- 7.6 includes/QuizMetadataController.class.inc \QuizMetadataController
Hierarchy
- class \EntityDefaultMetadataController
- class \QuizMetadataController
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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDefaultMetadataController:: |
protected | property | ||
EntityDefaultMetadataController:: |
public static | function | A options list callback returning all bundles for an entity type. | |
EntityDefaultMetadataController:: |
protected | function | Return a set of properties for an entity based on the schema definition | |
EntityDefaultMetadataController:: |
public | function | ||
QuizMetadataController:: |
public | function |
Overrides EntityDefaultMetadataController:: |