Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download tar.gz 9.91 KB
MD5: 8452fea45c44dbac676a1552a6f4c4b8
SHA-1: 2d5a6ee7e1df710e4cf84f492a6c049f0d9435ad
SHA-256: 047930e339b5c1ef589ec4e81314e464816b835ac31cdfb2192c5eb79802c325
Download zip 12.28 KB
MD5: 1148f8d3876f9a3244ef879498dfc173
SHA-1: 55c59bc75d61310aec45ed645c9652362a575973
SHA-256: a7b951ccc0b3255cc66efe1216beec2416d4bfa80e5b482efc5ace0de994791e

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

Other releases