bw_contact_form() – Implements the [bw_contact_form] shortcode

You appear to be a bot. Output may be restricted

Description

Implements the [bw_contact_form] shortcode

Creates/processes an inline contact form for the user.

Usage

$string = bw_contact_form( $atts, $content, $tag );

Parameters

$atts
( array ) optional – shortcode parameters
$content
( string ) optional – not yet expected
$tag
( string ) optional – shortcode name

Returns

string Generated HTML for the contact form

Source

File name: oik/shortcodes/oik-contact-form.php
Lines:

1 to 14 of 14
function bw_contact_form( $atts=null, $content=null, $tag=null ) {
  $email_to = bw_get_option_arr( "email", null, $atts );
  if ( $email_to ) { 
    $atts['email'] = $email_to; 
    bw_display_contact_form( $atts );
  } else {
    /*
		* If no email address can be found, because it's not passed and not set in the oik-options,
        * then you'll get this message.
		*/
    e( __( "Cannot produce contact form for unknown user.", "oik" ) );
  }  
  return( bw_ret() );
}
 

 View on Trac