You are here

function google_api_client_help in Google API PHP Client 8.2

Same name and namespace in other branches
  1. 8.4 google_api_client.module \google_api_client_help()
  2. 8.3 google_api_client.module \google_api_client_help()

Implements hook_help().

File

./google_api_client.module, line 11
Google Auth Api for drupal.

Code

function google_api_client_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.google_api_client':
      $path = $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'google_api_client');
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t("This module allows you to authenticate with google and use this authentication to carry other api requests. This module will help you to manage accounts, authenticate with google (i.e. get access token) and use this authentication to carry api requests in other modules.") . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<p>' . t("This module allows you to enter google account details like client id, client secret key, developer key, select google services to be enabled and gets the OAuth2 access token from google.  You can also revoke access(unauthenticate) a account.") . '</p>';
      $output .= '<p>' . t("For more details read the <a href='@url'>README.txt</a> file in the Google Api Client module directory.", array(
        '@url' => "{$path}/README.txt",
      )) . '</p>';
      return $output;
  }
}