function multichoice_install in Quiz 7.4
Same name and namespace in other branches
- 8.4 question_types/multichoice/multichoice.install \multichoice_install()
- 5.2 multichoice.install \multichoice_install()
- 6.6 question_types/multichoice/multichoice.install \multichoice_install()
- 6.2 multichoice.install \multichoice_install()
- 6.3 question_types/multichoice/multichoice.install \multichoice_install()
- 6.4 question_types/multichoice/multichoice.install \multichoice_install()
- 6.5 question_types/multichoice/multichoice.install \multichoice_install()
- 7.6 question_types/multichoice/multichoice.install \multichoice_install()
- 7 question_types/multichoice/multichoice.install \multichoice_install()
- 7.5 question_types/multichoice/multichoice.install \multichoice_install()
Implements hook_install().
File
- question_types/
multichoice/ multichoice.install, line 15 - Sponsored by: Norwegian Centre for Telemedicine Code: falcon
Code
function multichoice_install() {
// Add body field to multichoice node
quiz_question_add_body_field('multichoice');
// TODO The drupal_(un)install_schema functions are called automatically in D7.
// drupal_install_schema('multichoice')
cache_clear_all('autoload:', 'cache');
variable_set('node_options_multichoice', array(
'status',
));
}