function short_answer_install in Quiz 8.4
Same name and namespace in other branches
- 6.6 question_types/short_answer/short_answer.install \short_answer_install()
- 6.3 question_types/short_answer/short_answer.install \short_answer_install()
- 6.4 question_types/short_answer/short_answer.install \short_answer_install()
- 6.5 question_types/short_answer/short_answer.install \short_answer_install()
- 7.6 question_types/short_answer/short_answer.install \short_answer_install()
- 7 question_types/short_answer/short_answer.install \short_answer_install()
- 7.4 question_types/short_answer/short_answer.install \short_answer_install()
- 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();
}