function qcollection_questions_form_submit in Quiz 6.6
Submit function for qcollection_questions.
Updates from the "manage questions" tab.
Parameters
$form_id: A string containing the form id.
$values: Array containing the form values.
File
- includes/
qcollection/ qcollection.inc, line 190
Code
function qcollection_questions_form_submit($form, &$form_state) {
// This is ugly and should be fixed.
$quiz = node_load(arg(1));
$is_new_revision = (bool) $form_state['values']['new_revision'];
$removed = explode(',', $form_state['values']['remove_from_quiz']);
$weight_map = $form_state['values']['weights'];
_quiz_update_items($quiz, $weight_map, $removed, $is_new_revision);
}