You are here

twitter_embed.module in Twitter Embed 8

File

twitter_embed.module
View source
<?php

/**
 * @file
 * Contains twitter_embed.module.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function twitter_embed_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the twitter_embed module.
    case 'help.page.twitter_embed':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';

      // @todo complete help with Twitter references
      // - https://publish.twitter.com/
      // - https://dev.twitter.com/web/overview
      $output .= '<p>' . t('Simple embed of Twitter widgets, without OAuth.') . '</p>';
      return $output;
    default:
  }
}

Functions

Namesort descending Description
twitter_embed_help Implements hook_help().