You are here

function oembed_help in oEmbed 7

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

Implements hook_help().

File

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

Code

function oembed_help($path, $arg) {
  switch ($path) {
    case 'admin/help#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 'admin/config/media/oembed':
    case 'admin/config/media/oembed/consumer':
      $output = '<p>' . t('These settings affect how your site behaves when it makes requests as an oEmbed consumer.') . '</p>';
      return $output;
    case 'admin/config/media/oembed/provider':
      $output = '<p>' . t('Providers are other web sites with oEmbed endpoints whose content you can embed on your site.') . '</p>';
      return $output;
    case 'admin/config/media/oembed/test':
      $output = '<p>' . t('Use this form to test your configuration of provider plugins and endpoints.') . '</p>';
      return $output;
  }
}