UserCanAuthorField($GLOBALS["G_User"], $Field))
{
continue;
}
# skip file and image fields because there's no resource with which to
# associate the user with
if ($Field->Type() === MetadataSchema::MDFTYPE_IMAGE
|| $Field->Type() === MetadataSchema::MDFTYPE_FILE)
{
continue;
}
$SafeDisplayName = defaulthtmlentities($Field->GetDisplayName());
?>
: |
|
Delete();
}
/**
* Print additional form HTML.
* @param array $Data Additional form HTML.
*/
function PrintAdditionalFormHtml(array $Data)
{
# extract the results
$Labels = $Data["Labels"];
$InputElements = $Data["InputElements"];
$Notes = $Data["Notes"];
# append them where required
for ($i = 0; $i < count($Labels); $i++)
{
?>
|
|
SignalEvent(
"EVENT_APPEND_HTML_TO_FORM",
array("PageName" => "RequestAccount",
"FormName"=>"NewAccountForm",
"Labels" => array(),
"InputElements" => array(),
"Notes" => array()));
}
# ----- MAIN -----------------------------------------------------------------
$ErrorMessageList = $FTool->GetErrorMessages();
$AdditionalHtml = GetAdditionalFormHtml();
$CustomFields = CWUser::GetCustomUserFields();
$HasCustomFields = count($CustomFields) > 0;
$ShowAdditionalOptions = $HasCustomFields || count($AdditionalHtml["Labels"]) > 0;
?>
Create an Account