Closed (won't fix)
Project:
Libraries API
Version:
6.x-1.0
Component:
Documentation
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 May 2011 at 07:13 UTC
Updated:
24 May 2011 at 22:54 UTC
Hi,
I needed to include libchart in a module I've written and though it would be a good idea to put it in sites/all/libraries and use the libraries module. Its my fist time to use the libraries module so I read the README :-) .... and its wasn't clear how to get going.
Anyway what I did in the custom module was as follows:
$file=libraries_get_path('libchart/classes/libchart.php');
//dsm($file);
if (is_file($file)) {
require_once $file;
} else {
drupal_set_message('Could not load $file');
}
If this is the right thing for such use cases, maybe add it to the README?
Comments
Comment #1
tstoecklerI added a link to http://drupal.org/node/735160 on the project page, which explains how to use the 1.x branch in your module.
I don't think we need anything in README.txt