function media_library_install

Same name in other branches
  1. 9 core/modules/media_library/media_library.install \media_library_install()
  2. 8.9.x core/modules/media_library/media_library.install \media_library_install()
  3. 11.x core/modules/media_library/media_library.install \media_library_install()

Implements hook_install().

File

core/modules/media_library/media_library.install, line 13

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);
        }
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.