public static function feedback::hiddenOauthClientFields in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 8
1 call to feedback::hiddenOauthClientFields()
File
- src/
feedback.php, line 138
Class
Namespace
Drupal\miniorange_oauth_clientCode
public static function hiddenOauthClientFields($key, $value) {
$hiddenOauthClientField = "";
$value2 = array();
if (is_array($value)) {
foreach ($value as $key2 => $value2) {
if (is_array($value2)) {
self::hiddenOauthClientFields($key . "[" . $key2 . "]", $value2);
}
else {
$hiddenOauthClientField = "<input type='hidden' name='" . $key . "[" . $key2 . "]" . "' value='" . $value2 . "'>";
}
}
}
else {
$hiddenOauthClientField = "<input type='hidden' name='" . $key . "' value='" . $value . "'>";
}
echo $hiddenOauthClientField;
}