function _quiz_categorized_add_term in Quiz 7
Same name and namespace in other branches
- 8.4 quiz.admin.inc \_quiz_categorized_add_term()
- 6.4 quiz.admin.inc \_quiz_categorized_add_term()
- 7.6 quiz.admin.inc \_quiz_categorized_add_term()
- 7.4 quiz.admin.inc \_quiz_categorized_add_term()
- 7.5 quiz.admin.inc \_quiz_categorized_add_term()
Adds a term to a categorized quiz
This is a helper function for the submit function.
1 call to _quiz_categorized_add_term()
- quiz_categorized_form_submit in ./
quiz.admin.inc - Submit the categorized form
File
- ./
quiz.admin.inc, line 733 - Administrator interface for Quiz module.
Code
function _quiz_categorized_add_term($form, $form_state) {
drupal_set_message(t('The term was added'));
drupal_write_record('quiz_terms', $form_state['values']);
return $form_state['values']['number'];
}