oembed_providers.install in oEmbed Providers 1.1.x
Same filename and directory in other branches
This module provides install, uninstall, and update functions.
File
oembed_providers.installView source
<?php
/**
* @file
* This module provides install, uninstall, and update functions.
*/
/**
* Implements hook_install().
*/
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',
]));
}
}
Functions
Name | Description |
---|---|
oembed_providers_install | Implements hook_install(). |