$value) { if ($value['type'] == 'text' || $value['type'] == 'textarea') { // catch all mandatory fields that haven't been modified if ( $value['must'] == __('Enabled', 'zero-conf-mail') && $input[$def] == $value['label'] ) { //echo "error: " . $input[$def] . " unchanged"; return false; } // catch all mandatory fields that are empty elseif ( $value['must'] == __('Enabled', 'zero-conf-mail') && $input[$def] == '' ) { //echo "error: " . $value['label'] . $input[$def] . " empty"; return false; } } if ($value['type'] == 'email') { // catch all mandatory invalid mail addresses if ( $value['must'] == 'Enabled' && $value['type'] == 'email' && !is_email($input[$def]) ) { //echo "error: " . $input[$def] . " no mail"; return false; } } } return true; } /** * Print the mail form for visitors * Parameters: void */ function zcmail_printform() { $option = get_option('zcmail'); ?>
class="zcmail_text" /> Zero Conf Mail }