Index: libraries.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/libraries/libraries.module,v retrieving revision 1.6 diff -u -p -r1.6 libraries.module --- libraries.module 23 Jul 2010 12:57:01 -0000 1.6 +++ libraries.module 25 Jul 2010 20:58:45 -0000 @@ -329,12 +329,18 @@ function libraries_load_files($library, foreach (array('js', 'css') as $type) { if (!empty($library['files'][$type])) { foreach ($library['files'][$type] as $data => $options) { - // If the value is not an array, it's a filename and passed as first - // (and only) argument. + // If the value is not an array, it's a filename. if (!is_array($options)) { - // Prepend the library path to the file name. - $data = "$path/$options"; - $options = NULL; + // Handle external files. + if ($data == 'external') { + $data = $options; + $options = 'external'; + } + else { + // Prepend the library path to the file name of local files. + $data = "$path/$options"; + $options = NULL; + } } // In some cases, the first parameter ($data) is an array. Arrays can't be // passed as keys in PHP, so we have to get $data from the value array.