static function feedback::hiddenOauthClientFields in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8
1 call to feedback::hiddenOauthClientFields()
File
- src/
feedback.php, line 178
Class
Namespace
Drupal\miniorange_samlCode
static 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;
}