function hiddenOauthClientFields in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 7
1 call to hiddenOauthClientFields()
File
- ./
miniorange_oauth_client_feedback.php, line 215
Code
function hiddenOauthClientFields($key, $value) {
$hiddenOauthClientField = "";
$value2 = array();
if (is_array($value)) {
foreach ($value as $key2 => $value2) {
if (is_array($value2)) {
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;
}