You are here

function social_activity_install in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_activity/social_activity.install \social_activity_install()
  2. 8 modules/social_features/social_activity/social_activity.install \social_activity_install()
  3. 8.2 modules/social_features/social_activity/social_activity.install \social_activity_install()
  4. 8.3 modules/social_features/social_activity/social_activity.install \social_activity_install()
  5. 8.4 modules/social_features/social_activity/social_activity.install \social_activity_install()
  6. 8.5 modules/social_features/social_activity/social_activity.install \social_activity_install()
  7. 8.7 modules/social_features/social_activity/social_activity.install \social_activity_install()
  8. 8.8 modules/social_features/social_activity/social_activity.install \social_activity_install()
  9. 10.3.x modules/social_features/social_activity/social_activity.install \social_activity_install()
  10. 10.0.x modules/social_features/social_activity/social_activity.install \social_activity_install()
  11. 10.1.x modules/social_features/social_activity/social_activity.install \social_activity_install()
  12. 10.2.x modules/social_features/social_activity/social_activity.install \social_activity_install()

Social activity install function.

File

modules/social_features/social_activity/social_activity.install, line 16
The Social activity install.

Code

function social_activity_install() {

  // Add menu items.
  _social_activity_create_menu_links();

  // We can't add this as dependency, because this modules should be installed
  // after config and other activity modules installation.
  $modules = [
    'activity_basics',
    'activity_send_email',
  ];
  \Drupal::service('module_installer')
    ->install($modules);
  _social_activity_create_activity_homepage_block();
}