Install

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 9.89 KB
MD5: e3749d8b4ce58e3ccdac4d4403e71a4f
SHA-1: f6c38dc63f56eb7471b9ae8bd731e5167ff16f84
SHA-256: 40393c64618bca36bad84923f8bb96aaa487aa8ecf0b1a3c0bba83b578cf575e
Download zip 12.27 KB
MD5: ffa9ecd8fc24daaeac669200b73b7bf0
SHA-1: 7d3eb043b24325e7bf05ce3d13a8e6fc0f0b698a
SHA-256: 1d84abcc4678303a0fbf7a2320789b61a1847e26c315bd226003814149aabd52

Release notes

Fixes:
#1272234: variable_set() should be called only when needed.

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: 8 Sep 2011 at 01:50 UTC
Last updated: 8 Sep 2011 at 01:51 UTC
Bug fixes

Other releases