function social_tour_install in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/custom/social_tour/social_tour.install \social_tour_install()
- 8 modules/custom/social_tour/social_tour.install \social_tour_install()
- 8.2 modules/custom/social_tour/social_tour.install \social_tour_install()
- 8.3 modules/custom/social_tour/social_tour.install \social_tour_install()
- 8.4 modules/custom/social_tour/social_tour.install \social_tour_install()
- 8.5 modules/custom/social_tour/social_tour.install \social_tour_install()
- 8.6 modules/custom/social_tour/social_tour.install \social_tour_install()
- 8.7 modules/custom/social_tour/social_tour.install \social_tour_install()
- 10.3.x modules/custom/social_tour/social_tour.install \social_tour_install()
- 10.0.x modules/custom/social_tour/social_tour.install \social_tour_install()
- 10.1.x modules/custom/social_tour/social_tour.install \social_tour_install()
- 10.2.x modules/custom/social_tour/social_tour.install \social_tour_install()
Implements hook_install().
Perform actions related to the installation of social_tour.
File
- modules/
custom/ social_tour/ social_tour.install, line 15 - Install, update and uninstall functions for the social_tour module.
Code
function social_tour_install() {
// Set some default permissions.
_social_tour_set_permissions();
// Enable the module's on/off setting by default.
\Drupal::configFactory()
->getEditable('social_tour.settings')
->set('social_tour_enabled', 1)
->save();
}