You are here

function _swftools_tf in SWF Tools 6.2

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

Returns 'true' or 'false' for JavaScript based the supplied value $bool.

Parameters

$bool: The value that should be cast to true or false.

Return value

The string 'true' or 'false' depending on the supplied value.

6 calls to _swftools_tf()
swftools_swftools_embed in ./swftools.module
Implementation of swftools_embed hook Returns the markup for the page. This method generates standards compliant HTML
_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…
_imagerotator_flashvars in imagerotator/imagerotator.module
This function is called from 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_params in ./swftools.module
Return an array of default values to use as the swf parameters. Parameters are described in the Adobe knowledge base TechNote 12701 http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701
_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…

... See full list

File

./swftools.module, line 619

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