function FileFieldPathsTestCase::checkDependancy in File (Field) Paths 6
Same name and namespace in other branches
- 6.2 tests/filefield_paths.test \FileFieldPathsTestCase::checkDependancy()
1 call to FileFieldPathsTestCase::checkDependancy()
- filefield_paths.test in tests/
filefield_paths.test - This file implements tests for FileField Paths.
File
- tests/
filefield_paths.test, line 24 - This file implements tests for FileField Paths.
Class
- FileFieldPathsTestCase
- @file This file implements tests for FileField Paths.
Code
function checkDependancy($module) {
$result = db_fetch_object(db_query("SELECT filename FROM {system} WHERE type = 'module' AND name = '%s'", $module));
if (is_object($result) && file_exists($result->filename)) {
return TRUE;
}
return FALSE;
}