You are here

function oembed_help in oEmbed 8

Same name and namespace in other branches
  1. 6.0 oembed.module \oembed_help()
  2. 7 oembed.module \oembed_help()
  3. 7.0 oembed.module \oembed_help()

Implements hook_help().

File

./oembed.module, line 23
Core functionality for oEmbed

Code

function oembed_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.oembed':
      $output = '<p>' . t('oEmbed module will allow your Drupal site to embed content from <a href="@oembed">oEmbed</a>-providers as well as for the site to become an oEmbed-provider itself so that other oEmbed-enabled websites can easily embed your content.', array(
        '@oembed' => 'http://www.oembed.com/',
      )) . '</p>';
      $output .= '<p>' . t('Add or enable <a href="@provider">providers</a> to embed content from other sites.', array(
        '@provider' => url('admin/build/oembed/provider'),
      )) . '</p>';
      $output .= '<p>' . t('Adds an input filter for replacing oEmbed enabled URLs with embedded content') . '</p>';
      return $output;
    case 'oembed.settings':
      $output = '<p>' . t('These settings affect how your site behaves when it makes requests as an oEmbed consumer.') . '</p>';
      return $output;
    case 'entity.oembed_provider.collection':
      $output = '<p>' . t('Providers are other web sites with oEmbed endpoints whose content you can embed on your site.') . '</p>';
      return $output;
    case 'oembed.sandbox.form':
      $output = '<p>' . t('Use this form to test your configuration of provider plugins and endpoints.') . '</p>';
      return $output;
  }
}