You are here

function opigno_quiz_app_get_quiz_question_types in Opigno Quiz App 7

Helper function to get the available quiz question types.

Statically cached for better performance.

Return value

array

2 calls to opigno_quiz_app_get_quiz_question_types()
opigno_quiz_app_is_node_add_question in ./opigno_quiz_app.module
Helper function to determine if we're adding a Question node.
opigno_quiz_app_og_context_negotiation_info in ./opigno_quiz_app.module
Implements hook_og_context_negotiation_info

File

./opigno_quiz_app.module, line 1539
Module file. Defines module hooks.

Code

function opigno_quiz_app_get_quiz_question_types() {
  static $types;
  if (!isset($types)) {
    $types = array_keys(_quiz_question_get_implementations());
  }
  return $types;
}