Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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