You are here

function media_library_install in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media_library/media_library.install \media_library_install()
  2. 9 core/modules/media_library/media_library.install \media_library_install()

Implements hook_install().

File

core/modules/media_library/media_library.install, line 13
Install, update and uninstall functions for the media_library module.

Code

function media_library_install($is_syncing) {
  if (!$is_syncing) {
    foreach (MediaType::loadMultiple() as $type) {
      _media_library_configure_form_display($type);
      _media_library_configure_view_display($type);
    }
  }
}