You appear to be a bot. Output may be restricted
Description
Set a default value for an empty attribute value from the oik options or a hardcoded value
Usage
bw_default_empty_att( $bw_value, $bw_field, $bw_default, $set );
Parameters
- $bw_value
- ( string ) optional – value passed… if not set then
- $bw_field
- ( string ) optional – get the oik option value – this is the field name of the oik option – e.g. 'company'
- $bw_default
- ( string ) optional – the (hardcoded) default value if the oik option is not set
- $set
- ( string ) optional default: bw_options – options set from which the field should be returned e.g. $width = bw_default_empty_att( $width, "width", "100%" );
Returns
voidSource
File name: oik/includes/bobbcomp.phpLines:
1 to 9 of 9
function bw_default_empty_att( $bw_value=NULL, $bw_field=NULL, $bw_default=NULL, $set="bw_options" ) { $val = $bw_value; if ( empty( $val )) { $val = bw_get_option( $bw_field, $set ); if ( empty( $val )) $val = $bw_default; } return( $val ); }View on GitHub View on Trac