function gauth_help in Google Auth 8
Same name and namespace in other branches
- 7.2 gauth.module \gauth_help()
- 7 gauth.module \gauth_help()
Implements hook_help().
File
- ./
gauth.module, line 11 - Google Auth Api for drupal.
Code
function gauth_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.gauth':
$path = $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'gauth');
$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 Auth module directory.", array(
'@url' => "{$path}/README.txt",
)) . '</p>';
return $output;
}
}