You are here

function _quiz_format_mod in Quiz 8.4

Same name and namespace in other branches
  1. 6.4 quiz.module \_quiz_format_mod()
  2. 7 quiz.module \_quiz_format_mod()
  3. 7.4 quiz.module \_quiz_format_mod()

Modifies the format fieldset.

Adds a class to all the format fieldsets and removes unwanted strings. A javascript is added by the forms theme function to make sure all format selectors follows the body field format selector. Used when there are multiple format selectors on one page.

Could be a deprecated function in d7

Parameters

$format: The format fieldset.

1 call to _quiz_format_mod()
theme_multichoice_alternative_creation in question_types/multichoice/multichoice.theme.inc

File

./quiz.module, line 3044
Quiz Module

Code

function _quiz_format_mod(&$format) {
  $format['#attributes']['class'] = array(
    'quiz-filter',
  );
  if (isset($format['format'])) {
    $format['format']['guidelines']['#value'] = ' ';
    foreach ($format as $key => $value) {
      if (is_numeric($key)) {
        $format[$key]['#value'] = ' ';
      }
    }
  }
}