Install

Using Composer to manage Drupal site dependencies

Alternative installation files

Download include-8.x-1.6.tar.gztar.gz 9.84 KB
MD5: 8e1ed55e81ff7251d36473590efb4f9b
SHA-1: 0cebe3316ff4b6473550176b7eeefebe72bf1b08
SHA-256: e4545a69ab6902db1dea488e63f8f159c3d440a79d769c9c42569df2c8e90558
Download include-8.x-1.6.zipzip 12.22 KB
MD5: f6a2733fd8c4ccbc1f92bd1ee282bbd8
SHA-1: 1a4dbb4bb3d4bc699f97ba20b4e66e1603f8ba60
SHA-256: 751d93653b8849c4fc47d3ab6f0ad9d31fea7bbd02410174c0a555e22b560e8f

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:53 UTC
Last updated: 18 Apr 2011 at 21:56 UTC

Other releases