You are here

function theme_quiz_node_form in Quiz 7.4

Same name and namespace in other branches
  1. 8.4 quiz.admin.inc \theme_quiz_node_form()
  2. 6.4 quiz.admin.inc \theme_quiz_node_form()
  3. 7 quiz.admin.inc \theme_quiz_node_form()

Theme the quiz node form

Adds js to enhance the ux.

Parameters

$form: FAPI form array

File

./quiz.admin.inc, line 1806
Administrator interface for Quiz module.

Code

function theme_quiz_node_form($variables) {
  $form = $variables['form'];
  $path = drupal_get_path('module', 'quiz') . '/theme/quiz_node_form.js';
  drupal_add_js($path);
  return theme('node_form', array(
    'form' => $form,
  ));
}