Install

Works with Drupal: 7.x

Using dev releases is not recommended, except for testing.

Using Composer to manage Drupal site dependencies

Downloads

Download tar.gz 11.01 KB
MD5: 89429b0aee659958f9d76e355649b8c0
SHA-1: 077e829317dfaa753359475b979269879bb72cb8
SHA-256: d70941b84a7483cc88d7320c1560a3d34ff9616b455147d4e808c4ecbcf423f4
Download zip 13.36 KB
MD5: f75ef4aa9a4e8a1188a259ee0f54c6a6
SHA-1: 93f982a4e1cb8ed112781cec4fee54e470edd267
SHA-256: 6970ba5d31c71265e31bc03c8113944277574ea88a531cf9f0057ed69a9f5bc4

Release notes

Manages files on the include_files path, downloading them to a local include repository, if necessary.

Once a file is downloaded, the local include repository is added to the include_files path on every page request.

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: 9 Apr 2011 at 14:18 UTC
Last updated: 10 Apr 2011 at 00:14 UTC

Other releases