function oembed_providers_install in oEmbed Providers 2.x
Same name and namespace in other branches
- 1.0.x oembed_providers.install \oembed_providers_install()
- 1.1.x oembed_providers.install \oembed_providers_install()
Implements hook_install().
File
- ./
oembed_providers.install, line 13 - This module provides install, uninstall, and update functions.
Code
function oembed_providers_install() {
// Use $is_syncing parameter when Drupal 8.8 reaches EOL.
// https://www.drupal.org/node/3098920.
if (!\Drupal::isConfigSyncing()) {
\Drupal::messenger()
->addWarning(t('The <em>oEmbed Providers</em> module now manages oEmbed providers. Allowed oEmbed providers must be designated. <a href="@url">Configure <em>Allowed Providers</em> settings</a>', [
'@url' => '/admin/config/media/oembed-providers/allowed-providers',
]));
}
}