You appear to be a bot. Output may be restricted
Description
Form a "textarea" field
Usage
bw_textarea( $name, $len, $text, $value, $rows, $args );
Parameters
- $name
- ( string ) required – the field name
- $len
- ( numeric ) required – the length of the field ( e.g. 40 )
- $text
- ( string ) required – the label of the field (e.g. "Content" )
- $value
- ( string ) required – the value to display. If NULL then the current value is extracted from $_REQUEST[$name]
- $rows
- ( numeric ) optional default: 10 – the number of rows for the textarea field
- $args
- ( mixed ) optional –
Returns
voidSource
File name: oik-bwtrace/libs/bobbforms.phpLines:
1 to 22 of 22
function bw_textarea( $name, $len, $text, $value, $rows=10, $args=null ) { $lab = label( $name, $text ); if ( $value === null ) { $value = bw_array_get( $_REQUEST, $name, null ); bw_trace2( $value, "bw_textarea value" ); $value = wp_strip_all_tags( $value ); $value = stripslashes( $value ); } $spellcheck = bw_array_get( $args, "#spellcheck", null ); if ( null !== $spellcheck ) { $spellcheck = kv( "spellcheck", $spellcheck ); } $itext = iarea( $name, $len, $value, $rows, $spellcheck ); if ( bw_is_table() ) { bw_tablerow(array($lab, $itext)); } else { $class = bw_array_get( $args, '#class', null ); bw_gridrow(array($lab, $itext), $class ); } return; }View on GitHub View on Trac