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.
I'm trying to drupal_add_library('system', 'ui.spinner') but it's not being added, the library array for ui.spinner is empty .. how do I add new widgets from jquery_update module? And also any scripts from ui/external folder, i.e. globalize.js
Comments
Comment #1
OnkelTem CreditAttribution: OnkelTem commentedSame shit
UPDATE. Oh. It's simple. They didn't bother to declare it. It's just missed in jquery_update.
Comment #2
OnkelTem CreditAttribution: OnkelTem commentedquick patch
Now
drupal_add_library('jquery_update', 'ui.spinner');
should work.Comment #3
ericduran CreditAttribution: ericduran commentedThis is fixed in the latest dev. You should now be able to do drupal_add_library('system', 'ui.spinner').
Comment #5
danylevskyiI'd like to make a note that
system
module should be used insteadjquery_update
to add the library.Example:
Comment #6
MykolaVeryha CreditAttribution: MykolaVeryha commentedDrupal 8
Libraries
core/jquery.ui.spinner