Description
Validate the contact information with respect to the contact status
Usage
oiksp_validate_contact( $name, $email, $confirm, $atts );Parameters
- $name
- ( mixed ) required –
- ( mixed ) required –
- $confirm
- ( mixed ) required –
- $atts
- ( mixed ) required –
Returns
voidSource
File name: oik-squeeze/shortcodes/oik-squeeze.phpLines:
1 to 11 of 11
function oiksp_validate_contact( $name, $email, $confirm, &$atts ) { $post = oiksp_get_contact( $email ); if ( $post ) { $result = oiksp_check_contact( $post, $name, $confirm, $atts ); } else { $result = oiksp_create_contact( $name, $email, $atts ); //$result = false; } bw_trace2( $result ); return( $result ); }View on GitHub
Invoked by
Calls
1 to 4 of 4
- bw_trace2() – Trace $value to the trace log file if tracing is active
- oiksp_check_contact() – Check that the contact is valid and matches the name and (when required) confirm field
- oiksp_create_contact() – Create the oik_contact record for the first contact
- oiksp_get_contact() – Load an oik_contact record by the email address
