' . $a['caption'] . ' | | ';
if (is_string($a['display']) && is_callable(array($this, $a['display'])))
$sRet .= call_user_func_array(array($this, $a['display']), array($aDataEntry[$k]));
else if (0 == strcasecmp($k, 'country'))
$sRet .= _t($GLOBALS['aPreValues']['Country'][$aDataEntry[$k]]['LKey']);
Below that, add this:
else if ($a['name'] == 'url')
$sRet .= "".$aDataEntry[$k]."";
Example:
function blockFields (&$aDataEntry) {
$sRet = '';
bx_clubs_import ('FormAdd');
$oForm = new BxClubsFormAdd ($GLOBALS['oBxClubsModule'], $_COOKIE['memberID']);
foreach ($oForm->aInputs as $k => $a) {
if (!isset($a['display']) || !$aDataEntry[$k]) continue;
$sRet .= '' . $a['caption'] . ' | | ';
if (is_string($a['display']) && is_callable(array($this, $a['display'])))
$sRet .= call_user_func_array(array($this, $a['display']), array($aDataEntry[$k]));
else if (0 == strcasecmp($k, 'country'))
$sRet .= _t($GLOBALS['aPreValues']['Country'][$aDataEntry[$k]]['LKey']);
else if ($a['name'] == 'url')
$sRet .= "".$aDataEntry[$k]."";
else
$sRet .= $aDataEntry[$k];
$sRet .= ' | | ';
}
$sRet .= ' ';
return $sRet;
}
}
?> |