You are here

function _quiz_format_mod in Quiz 7

Same name and namespace in other branches
  1. 8.4 quiz.module \_quiz_format_mod()
  2. 6.4 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()
multichoice-alternative-creation.tpl.php in question_types/multichoice/theme/multichoice-alternative-creation.tpl.php
Handles the layout of the choice creation form.

File

./quiz.module, line 4117
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'] = ' ';
      }
    }
  }
}