You appear to be a bot. Output may be restricted
Description
Create a checkbox field given a field name and value
Usage
bw_checkbox( $name, $text, $value, $args );
Parameters
- $name
- ( string ) required – field name
- $text
- ( string ) required – field label
- $value
- ( integer ) optional default: 1 –
- for checked
- $args
- ( array ) optional – array of arguments
Returns
voidSource
File name: oik/libs/bobbforms.phpLines:
1 to 11 of 11
function bw_checkbox( $name, $text, $value=1, $args=NULL ) { $lab = BW_::label( $name, $text ); $icheckbox = icheckbox( $name, $value ); if ( bw_is_table() ) { bw_tablerow(array($lab, $icheckbox)); } else { $class = bw_array_get( $args, '#class', null ); bw_gridrow(array($lab, $icheckbox), $class ); } return; }View on GitHub View on Trac