You appear to be a bot. Output may be restricted
Description
Query the need to shorten a select field's optionsGet the value of '#length' if available. If this is set then we truncate the options strings
Usage
$integer = bw_query_shorten( $args );
Parameters
- $args
- ( array ) optional –
Returns
integer the length to shorten to, not including the '…'Source
File name: oik-bwtrace/libs/bobbforms.phpLines:
1 to 8 of 8
function bw_query_shorten( $args=null ) { bw_backtrace( BW_TRACE_DEBUG ); $shorten = 0; if ( $args ) { $shorten = bw_array_get( $args, "#length", 0 ); } return( $shorten ); }View on GitHub View on Trac