Downloads
Release notes
Manages files on the include_files path, downloading them to a local include repository, if necessary.
Once a file is downloaded, the local include repository is added to the include_files path on every page request.
This very simple module contains only one externally useful function:
include_check_path($path, $source = NULL, $type = 'file')-
Verifies or installs a file or directory into the include repository.
- Parameters
-
$pathThe target path to install, relative to the include file root. If$pathis empty or ends in a trailing slash, it is interpreted as a directory name, and both$sourceand$typeare ignored. -
$source(optional) The file data, or a uri where it may be found. If unset or empty, then$pathis a directory name, and$typeis ignored. -
$type(optional) A string which determines how$sourceis to be interpreted. Must be one of the following:-
'dir':$pathis a directory name, and$sourceis ignored. -
'file': (Default) realpath($source) is a local file. -
'url':$sourceis a string containing the file data.
-
- Return value
-
TRUEif the file was found or installed; otherwiseFALSE.