You are here

function bynder_help in Bynder 8

Same name and namespace in other branches
  1. 8.3 bynder.module \bynder_help()
  2. 8.2 bynder.module \bynder_help()
  3. 7 bynder.module \bynder_help()
  4. 4.0.x bynder.module \bynder_help()

Implements hook_help().

File

./bynder.module, line 18
Provides bynder integration.

Code

function bynder_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.bynder':
      $output = '';
      $output .= '<h3>' . t('Bynder') . '</h3>';
      $output .= '<p>' . t('Bynder is an online image bank and Digital Asset Management solution that allows you to store, manage and share your media. Using the DAM API you can access media, brands, categories, titles, copyright values and various other meta data fields as well as pointers to the file destinations.') . '</p>';
      $output .= '<p>' . t('Bynder uses OAth version 1 with header authentication to provide authorize access to its API.') . '</p>';
      $output .= '<p>' . t('The API endpoint URLs are setup as: http://[accountdomain]/api/[version]/[method].') . '</p>';
      $output .= '<p>' . t('To request access contact <a href=":support">support</a>.', [
        ':support' => 'mailto:support@getbynder.com',
      ]) . '</p>';
      $output .= '<p>' . t('To get a customer key and secret <a href=":guide">follow the official guide</a> and to acquire an access token and secred take <a href=":api">a look at the API documentation</a>.', [
        ':guide' => 'https://support.getbynder.com/hc/en-us/articles/208734785',
        ':api' => 'http://docs.bynder.apiary.io/#reference/token',
      ]) . '</p>';
      $output .= '<p>' . t('API documentation is available at <a href=":url">:url</a>.', [
        ':url' => 'http://docs.bynder.apiary.io/',
      ]) . '</p>';
      return $output;
    case 'bynder.configuration_form':
      $output = '';
      $output .= '<p>' . t('To enable OAuth based access for Bynder API fill in provided fields.');
      $output .= ' ' . t('To get a customer key and secret <a href=":guide">follow the official guide</a> and to acquire an access token and secred take <a href=":api">a look at the API documentation</a>.', [
        ':guide' => 'https://support.getbynder.com/hc/en-us/articles/208734785',
        ':api' => 'http://docs.bynder.apiary.io/#reference/token',
      ]) . '</p>';
      return $output;
  }
}