get("valid_from");
if ($currentValue == '') {
$currentValue = '1000-01-01';
}
$currentValue = str_replace('00:00:00', '', $currentValue);
$sValidFrom = '
';
$sValidFrom .= ' ';
$sValidFrom .= '';
return sprintf($template,$sValidFrom);
}
function frontendusers_valid_from_wantedVariables ()
{
return (array("valid_from"));
}
/**
* check and store valid_from date/datetime
*
* @global FrontendUser $feuser
* @param array $variables
*/
function frontendusers_valid_from_store ($variables) {
global $feuser;
if(Contenido_Security::isMySQLDate($variables["valid_from"], true)
|| Contenido_Security::isMySQLDateTime($variables["valid_from"], true)
|| empty($variables["valid_from"])
|| $variables["valid_from"] == "0000-00-00"
|| $variables["valid_from"] == "1000-01-01") {
$feuser->set("valid_from", $variables["valid_from"], false);
}
}
?>