You are here

function _plupload_requirements_installed in Plupload integration 7.2

Same name and namespace in other branches
  1. 8 plupload.install \_plupload_requirements_installed()
  2. 7 plupload.install \_plupload_requirements_installed()
  3. 2.0.x plupload.install \_plupload_requirements_installed()

Checks wether Plupload library exists or not.

Return value

boolean TRUE if plupload library installed, FALSE otherwise.

1 call to _plupload_requirements_installed()
plupload_requirements in ./plupload.install
Implements hook_requirements().

File

./plupload.install, line 70
Install, update and uninstall functions for the Plupload module.

Code

function _plupload_requirements_installed() {
  $libraries = plupload_library();
  $library = $libraries['plupload'];

  // We grab the first file and check if it exists.
  $testfile = key($library['js']);
  if (!file_exists($testfile)) {
    return FALSE;
  }
  return TRUE;
}