You are here

function short_answer_install in Quiz 8.4

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

Implements hook_install().

File

question_types/short_answer/short_answer.install, line 11
The installer file for short_answer.

Code

function short_answer_install() {
  \Drupal::config('short_answer.settings')
    ->set('node_options_short_answer', array(
    'status',
  ))
    ->save();

  //cache_clear_all('autoload:', 'cache');
  entity_info_cache_clear();
}