function _quiz_question_get_implementations in Quiz 6.3
Same name and namespace in other branches
- 8.4 question_types/quiz_question/quiz_question.module \_quiz_question_get_implementations()
- 6.6 question_types/quiz_question/quiz_question.module \_quiz_question_get_implementations()
- 6.4 question_types/quiz_question/quiz_question.module \_quiz_question_get_implementations()
- 6.5 question_types/quiz_question/quiz_question.module \_quiz_question_get_implementations()
- 7 question_types/quiz_question/quiz_question.module \_quiz_question_get_implementations()
- 7.4 question_types/quiz_question/quiz_question.module \_quiz_question_get_implementations()
Get the information about various implementations of quiz questions.
Parameters
$reset: If this is true, the cache will be reset.
Return value
An array of information about quiz question implementations.
See also
quiz_question_quiz_question_info() for an example of a quiz question info hook.
5 calls to _quiz_question_get_implementations()
- quiz_question_list_questions in question_types/
quiz_question/ quiz_question.module - Implementation of hook_list_questions().
- quiz_question_menu in question_types/
quiz_question/ quiz_question.module - Implementation of hook_menu().
- quiz_question_node_info in question_types/
quiz_question/ quiz_question.module - Implementation of hook_node_info().
- _quiz_question_get_instance in question_types/
quiz_question/ quiz_question.module - Get an instance of a quiz question. Get information about the class and use it to construct a new object of the appropriate type.
- _quiz_question_response_get_instance in question_types/
quiz_question/ quiz_question.module
File
- question_types/
quiz_question/ quiz_question.module, line 454 - Quiz Question module. This module provides the basic facilities for adding quiz question types to a quiz. While you can create standard Quiz question types simply by implementing the appropriate hooks, this module provides a framework that makes…
Code
function _quiz_question_get_implementations($name = NULL, $reset = FALSE) {
static $info = array();
if (empty($info) || $reset) {
$qtypes = module_invoke_all('quiz_question_info');
foreach ($qtypes as $type => $definition) {
// We only want the ones with classes.
if (!empty($definition['question provider'])) {
$info[$type] = $definition;
}
}
}
return $info;
}