function _swftools_tf in SWF Tools 6.3
Same name and namespace in other branches
- 5 swftools.module \_swftools_tf()
- 6 swftools.module \_swftools_tf()
- 6.2 swftools.module \_swftools_tf()
Returns 'true' or 'false' for JavaScript based the supplied value $bool.
Parameters
bool $bool: The value that should be cast to true or false.
Return value
string The string value 'true' or 'false' depending on the supplied value.
4 calls to _swftools_tf()
- _swftools_flowplayer_flashvars in flowplayer/
swftools_flowplayer.module - This function is called from flowplayer_swftools_flashvars() which is called from swf() It will return the default flashvar configuration, just prior to any overrides passed into swf(). We start with the settings defined on admin/swf/wijering which…
- _swftools_imagerotator_flashvars in imagerotator/
swftools_imagerotator.module - This function is called from swftools_imagerotator_swftools_flashvars() which is called from swf() It will return the default flashvar configuration, just prior to any overrides passed into swf(). We start with the settings defined on…
- _swftools_jw5_flashvars in jw5/
swftools_jw5.module - Return the default flashvar configuration for JW Player 4.
- _swftools_wijering4_flashvars in wijering4/
swftools_wijering4.module - Return the default flashvar configuration for JW Player 4.
File
- ./
swftools.module, line 584 - The primary component of SWF Tools that enables comprehensive media handling.
Code
function _swftools_tf($bool) {
// String 'false' is treated as TRUE in PHP logic, so force to FALSE
if (strtolower($bool) == 'false') {
$bool = FALSE;
}
// Return 'true' or 'false' now we are sure of result
return $bool ? 'true' : 'false';
}