I am working on a module for Drupal 7. I am using some of the jQuery UI modules which are included.
my natural way to include these is to use drupal_add_js()
and drupal_add_css()
with the relevant files. However this feels a little wrong. Is there an official (or better) way to include these libraries, either from Drupal or jQuery.
I tend to find the Drupal/jQuery interface very powerful but frustratingly sparse on documentation.