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.
All my js are located in the footer.
jqery.bxslider.js located first.
How I can add a weight for this js?
This code is not working.
function bxslider_library() {
$module_path = drupal_get_path('module', 'bxslider');
$library_path = libraries_get_path('bxslider');
$libraries['bxslider'] = array(
'title' => 'bxslider',
'website' => 'http://bxslider.com',
'version' => '4.1',
'js' => array(
$library_path . '/jquery.bxslider.min.js' => array(
'scope' => 'footer',
'weight' => 1001,
),
),
Comments
Comment #1
anikitin35 CreditAttribution: anikitin35 commentedExample:
BxSlider does't working.
Comment #2
anikitin35 CreditAttribution: anikitin35 commentedI found this code:
How I can add weight for it?
Comment #3
VVVi CreditAttribution: VVVi commented