Install


Using dev releases is not recommended, except for testing.

Using Composer to manage Drupal site dependencies

Alternative installation files

Download include-8.x-1.x-dev.tar.gztar.gz 11 KB
MD5: de128b3d0a2bd205b5bccc72dfb4dfe0
SHA-1: 8111d38df009df6f06d29982ce6cf6c7a70e11d9
SHA-256: c5d98042d5b03ec9f73b0c01c5e8c8bc7d2dccc968f6af4c0e3246547a290e76
Download include-8.x-1.x-dev.zipzip 13.35 KB
MD5: fb069d1dbdbd1408cdb7100aa2bfc330
SHA-1: b056b399d26f100132df1d4221e6a3610119469e
SHA-256: 84fb6fd3d716ef087408e2003b90d83daa7ae7814e5e8c015282181d8dfee1b5

Release notes

Include

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

$path The target path to install, relative to the include file root. If $path is empty or ends in a trailing slash, it is interpreted as a directory name, and both $source and $type are ignored.

$source (optional) The file data, or a uri where it may be found. If unset or empty, then $path is a directory name, and $type is ignored.

$type (optional) A string which determines how $source is to be interpreted. Must be one of the following:

  • 'dir' : $path is a directory name, and $source is ignored.

  • 'file' : (Default) drupal_realpath($source) is a local file.

  • 'url' : $source is a string containing the file data.

Return value

TRUE if the file was found or installed; otherwise FALSE.

Created by: pillarsdotnet
Created on: 18 Apr 2011 at 21:54 UTC
Last updated: 19 Apr 2011 at 00:21 UTC

Other releases