-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple_oauth_code.module
28 lines (23 loc) · 1001 Bytes
/
simple_oauth_code.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* @file
* Contains simple_oauth_code.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function simple_oauth_code_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the simple_oauth_code module.
case 'help.page.simple_oauth_code':
$output = '';
$output .= '<h3>' . t('Simple Oauth Code') . '</h3>';
$output .= '<p>' . t('An extension for <a href="https://www.drupal.org/project/simple_oauth">simple_oauth</a> module.
This module provide a service named `simple_oauth_code.authorization_code_generator`, for generating oauth2 code manually by developer.') . '</p>';
$output .= '<p>' . t('This feature had used by <a href="https://www.drupal.org/project/user_phone">user_phone</a> module,
to provides <blockquote>phone-sms-login</blockquote> and <blockquote>phone-password-login</blockquote> functionality.') . '</p>';
return $output;
default:
}
}