You are here

function _swftools_tf in SWF Tools 5

Same name and namespace in other branches
  1. 6.3 swftools.module \_swftools_tf()
  2. 6 swftools.module \_swftools_tf()
  3. 6.2 swftools.module \_swftools_tf()

Returns 'true' or 'false' for javascript based on 0,1,TRUE,FALSE etc

5 calls to _swftools_tf()
swftools_swftools_embed in ./swftools.module
Implementation of swftools_embed hook Returns the markup for the page.
_flowplayer_flashvars in flowplayer/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_params in ./swftools.module
These are the default params.
_wijering4_flashvars in wijering4/wijering4.module
This function is called from wijering4_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 are…
_wijering_flashvars in wijering/wijering.module
This function is called from wijering_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 are…

File

./swftools.module, line 539

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';
}