Posted by Punk_UnDeaD on July 30, 2012 at 8:29am
4 followers
Jump to:
| Project: | Libraries API |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
if (!isset($options['group'])) {
$options['group'] = ($type == 'js') ? JS_LIBRARY : CSS_DEFAULT;
}
Comments
#1
Well the thing is that there is no CSS_LIBRARY, which is why we use CSS_DEFAULT. I don't get why we wouldn't want to use JS_LIBRARY.
#2
Without fixing JS_DEFAULT to JS_LIBRARY there is an error message. Should be fixed as soon as possible.
#3
Can you provide the error message?
#4
Notice: Undefined index: installed in function libraries_load() (string 604 in file ***********\sites\all\modules\libraries\libraries.module). Screen shot : http://snag.gy/9dUeG.jpg
#5
#6
Well, this error appeared, because I've patched module like this
foreach ($directories as $dir) {if (file_exists($dir)) {
$files = array_merge($files, file_scan_directory($dir, '@^[a-z0-9._-]+\.libraries\.info$@', array(
'key' => 'name',
'recurse' => TRUE,
)));
}
}
in reason to keep my library files in order. So, it might be considered as false alarm. Sorry.
#7
...which also means that the statement in #2 was entirely bogus, because the error message states something completely different.
#1 explained why the code is using CSS_DEFAULT.
#8
<?php$elements['#attached']['libraries_load'][] = array('mgmapmarkermanager');
$elements['#attached']['js'][] = drupal_get_path('module', 'hotel_show') . '/hotel_show.direction.js';
?>
hotel_show.direction.js use mgmapmarkermanager
how to attach in this case?
#9
Re Punk_UnDeaD:
Please open a new issue if you have any problems with this module. Your specific problem sounds more like a support request, though, which is better handled in the forums. Thanks!