Install
Using dev releases is not recommended, except for testing.
Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Installs and manages files and packages that need to reside on the PHP include_path.
Any file not found on the default include_path is added to the local repository, which is then added to the include_path on every page load. If an error occurs, the original include_path is restored and an error flag is set to prevent further damage.
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) drupal_realpath($source) is a local file. -
'url':$sourceis a string containing the file data.
-
- Return value
-
TRUEif the file was found or installed; otherwiseFALSE.