function getValueOfField in Google Authenticator / 2 Factor Authentication - 2FA 7
1 call to getValueOfField()
File
- ./
mo_auth.module, line 744 - Module file for miniOrange 2FA Module.
Code
function getValueOfField(&$account, $fieldMachineName) {
$fieldValue = "";
$fieldMachineName = trim($fieldMachineName);
if (!empty($fieldMachineName)) {
if (isset($account->{$fieldMachineName})) {
$fieldValue = isset($account->{$fieldMachineName}) ? $account->{$fieldMachineName} : FALSE;
if ($fieldValue !== FALSE && isset($fieldValue['und'][0]['value'])) {
$fieldValue = $fieldValue['und'][0]['value'];
}
else {
$fieldValue = "";
}
}
}
return $fieldValue;
}