You are here

function social_core_install in Open Social 10.0.x

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

Implements hook_install().

Perform actions related to the installation of social_core.

File

modules/social_features/social_core/social_core.install, line 68
Install, update and uninstall functions for the social_core module.

Code

function social_core_install() {

  // Set some default permissions.
  _social_core_set_permissions();

  // Create AN Homepage block.
  _social_core_create_an_homepage_block();

  // Add menu items.
  _social_core_create_menu_links();

  // Set image quality defaults.
  $config = \Drupal::service('config.factory')
    ->getEditable('system.image.gd');
  $config
    ->set('jpeg_quality', 90)
    ->save();

  // If social blue is enabled, and default image is still Open Social.
  // Lets add the default e-mail logo for open social aswell.
  _social_core_set_default_email_logo_for_socialblue();
}