You are here

oembed_providers.install in oEmbed Providers 1.0.x

Same filename and directory in other branches
  1. 2.x oembed_providers.install
  2. 1.1.x oembed_providers.install

This module provides install, uninstall, and update functions.

File

oembed_providers.install
View 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

Namesort descending Description
oembed_providers_install Implements hook_install().