You are here

function swfobject2_available_locally in SWF Tools 6.2

Verify if the swfobject2.js library is available locally.

Return value

TRUE or FALSE, depending if the library is present.

1 call to swfobject2_available_locally()
swfobject2_swftools_embed in swfobject2/swfobject2.module
Implementation of swftools_embed hook Returns the markup for the page, plus set necessary javascript.

File

swfobject2/swfobject2.module, line 141

Code

function swfobject2_available_locally() {

  // See if the library is present
  if (file_exists(swftools_get_player_path() . '/swfobject2/swfobject.js')) {
    return TRUE;
  }

  // Return false if it doesn't
  return FALSE;
}