diff --git a/openlayers.module b/openlayers.module
index 56a69ab..da50543 100644
--- a/openlayers.module
+++ b/openlayers.module
@@ -1050,3 +1050,26 @@ function openlayers_render_preset($map = '', $map_name = '') {
     return openlayers_render_map($map);
   }
 }
+
+/**
+ * Implements hook_library().
+ */
+function openlayers_libraries_info() {
+  $libraries = array();
+  $libraries['openlayers'] = array(
+    'title' => 'OpenLayers',
+    'machine name' => 'OpenLayers',
+    'website' => 'http://www.openlayers.org',
+    'files' => array(
+      'js' => array( 'OpenLayers.js' ),
+      'css' => array( 'theme/default/style.css' ),
+    ),
+    'version arguments' => array(
+      'file' => 'lib/OpenLayers/SingleFile.js',
+      'pattern' => '@VERSION_NUMBER: "Release ([0-9\.]+)"@',
+      'lines' => 15,
+      'cols' => 50,
+    ),
+  );
+  return $libraries;
+}
