You are here

function theme_scale_creation_form in Quiz 6.4

Same name and namespace in other branches
  1. 8.6 question_types/quiz_scale/theme/scale.theme.inc \theme_scale_creation_form()
  2. 8.4 question_types/scale/scale.theme.inc \theme_scale_creation_form()
  3. 8.5 question_types/quiz_scale/theme/scale.theme.inc \theme_scale_creation_form()
  4. 6.6 question_types/scale/scale.module \theme_scale_creation_form()
  5. 7.6 question_types/scale/theme/scale.theme.inc \theme_scale_creation_form()
  6. 7 question_types/scale/theme/scale.theme.inc \theme_scale_creation_form()
  7. 7.4 question_types/scale/theme/scale.theme.inc \theme_scale_creation_form()
  8. 7.5 question_types/scale/theme/scale.theme.inc \theme_scale_creation_form()

Theme function for the scale creation form.

This function only adds js to the page. Js should be added to forms through theme functions like this one. Js can't be added to the page from the form function because sometimes the form is returned from cache.

Parameters

$form: The scale creation form

File

question_types/scale/theme/scale.theme.inc, line 20
The theme file for scale.

Code

function theme_scale_creation_form($form) {
  $path = drupal_get_path('module', 'scale') . '/scale.js';
  drupal_add_js($path, 'module');
}