You are here

function _flowplayer_get_swf_path in Flowplayer API 7.2

Get the path to the flowplayer.swf file

2 calls to _flowplayer_get_swf_path()
flowplayer_add in ./flowplayer.module
Adds a FlowPlayer element to the page.
_flowplayer_admin_settings_check_plugin_path in ./flowplayer.admin.inc
Checks if the directory in $form_element exists and contains a file named 'flowplayer.swf'. If validation fails, the form element is flagged with an error from within the file_check_directory function.

File

./flowplayer.module, line 303
Provides integration with FlowPlayer.

Code

function _flowplayer_get_swf_path() {
  $library_path = flowplayer_get_path();
  $files = glob($library_path . '/flowplayer.swf');
  return isset($files[0]) ? $files[0] : false;
}