function quiz_forms in Quiz 7.5
Implements hook_forms().
File
- ./
quiz.module, line 4067 - quiz.module Main file for the Quiz module.
Code
function quiz_forms($form_id, $args) {
$info = entity_get_info('quiz_result');
$forms = array();
// Translate bundle form ids to the base form id 'quiz_result_form'.
foreach ($info['bundles'] as $bundle => $bundle_info) {
$forms['quiz_result_edit_' . $bundle . '_form']['callback'] = 'quiz_result_form';
$forms['quiz_result_edit_' . $bundle . '_form']['wrapper callback'] = 'entity_ui_form_defaults';
}
return $forms;
}