You are here

function social_tour_install in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 modules/custom/social_tour/social_tour.install \social_tour_install()
  2. 8 modules/custom/social_tour/social_tour.install \social_tour_install()
  3. 8.2 modules/custom/social_tour/social_tour.install \social_tour_install()
  4. 8.3 modules/custom/social_tour/social_tour.install \social_tour_install()
  5. 8.4 modules/custom/social_tour/social_tour.install \social_tour_install()
  6. 8.5 modules/custom/social_tour/social_tour.install \social_tour_install()
  7. 8.6 modules/custom/social_tour/social_tour.install \social_tour_install()
  8. 8.7 modules/custom/social_tour/social_tour.install \social_tour_install()
  9. 8.8 modules/custom/social_tour/social_tour.install \social_tour_install()
  10. 10.3.x modules/custom/social_tour/social_tour.install \social_tour_install()
  11. 10.0.x modules/custom/social_tour/social_tour.install \social_tour_install()
  12. 10.1.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();
}