Index: libraries.api.php
===================================================================
RCS file: libraries.api.php
diff -N libraries.api.php
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ libraries.api.php	12 Mar 2010 07:24:03 -0000
@@ -0,0 +1,35 @@
+<?php
+/*
+ * Declare information about required external libraries
+ *
+ * @return
+ *   An associative array containing library information. The key is the name of the
+ *   library, which  must be the name of the directory the library should be
+ *   contained in within a 'libraries' directory. The values are themselves
+ *   associative arrays containing following key-value pairs:
+ *     'title' => The human-readable name of the block.
+ *     'vendor_url' => The homepage of the library.
+ *     'download_url' => The website where the current version of the library can be obtained.
+ *     'version_callback' => A function that returns the full version string of the library.
+ *       Defaults to 'libraries_get_version', a helper function which takes two arguments:
+ *         $file The file to use for the version check.
+ *         $line_number The line number in the specified file which contains the version information.
+ *     'version_arguments' => Arguments to pass to the version callback. Can usually
+ *       be omitted when using a custom version callback.
+ *     'files' => (Optional) The files to include as part of the library. Can be PHP,
+ *       JavaScript or CSS files. If ommitted, all files with the file endings .php,
+ *       .js and .css in the library's directory will be included.
+ *     'dependencies' => The library's dependencies. A string for a single dependency or an array if the library has multiple dependencies.
+ */
+function hook_libraries_info() {
+  $libraries['cool_lib'] = array( // This makes Libraries API search the 'sites/all/libraries/cool_lib' directory (among others).
+    'title' => 'Cool library',
+    'vendor_url' => 'http://cool_lib.com',
+    'download_url' => 'http://cool_lib.com/download'
+    'version_arguments' => array('CHANGELOG.txt', '5'),
+    'files' => array('cool_lib.php', 'cool_lib.js', 'cool_lib.php') 
+    'dependencies' => 'jqueryui'
+  );
+
+  return $libraries;
+}
