You are here

function matching_install in Quiz 7.4

Same name and namespace in other branches
  1. 8.4 question_types/matching/matching.install \matching_install()
  2. 6.6 question_types/matching/matching.install \matching_install()
  3. 6.3 question_types/matching/matching.install \matching_install()
  4. 6.4 question_types/matching/matching.install \matching_install()
  5. 6.5 question_types/matching/matching.install \matching_install()
  6. 7.6 question_types/matching/matching.install \matching_install()
  7. 7 question_types/matching/matching.install \matching_install()
  8. 7.5 question_types/matching/matching.install \matching_install()

Implements hook_install().

File

question_types/matching/matching.install, line 11
matching install file.

Code

function matching_install() {

  // Add body field to matching node
  quiz_question_add_body_field('matching');

  // TODO The drupal_(un)install_schema functions are called automatically in D7.
  // drupal_install_schema('matching')
  variable_set('node_options_matching', array(
    'status',
  ));
  cache_clear_all('autoload:', 'cache');
}