function jqp_plugin_exists in jQuery Plugin Handler (JQP) 6
Check the existence of a given plugin in the plugins directory
Parameters
$file_name: The name of the .js or .css file to check in the plugins directory
Return value
boolean TRUE/FALSE representing whether the file was found
File
- ./
jqp.module, line 59
Code
function jqp_plugin_exists($file_name) {
$files = jqp_scan_dir();
return $files[$file_name] ? TRUE : FALSE;
}