You are here

function swftools_swfobject2_available_locally in SWF Tools 6.3

Verifies if the swfobject2.js library is available locally.

Return value

TRUE or FALSE, depending if the library is present.

2 calls to swftools_swfobject2_available_locally()
swftools_swfobject2_add_js in swfobject2/swftools_swfobject2.module
Places swfobject JavaScript on the page, either using the local code, or from Google APIs.
theme_swftools_swfobject2 in swfobject2/swftools_swfobject2.module
Turns an SWF Tools data array in to markup and JavaScript for inclusion on the page.

File

swfobject2/swftools_swfobject2.module, line 61
Enables SWF Tools support for swfObject 2 JavaScript flash embedding.

Code

function swftools_swfobject2_available_locally() {

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

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