A module I am using on my site uses the drupal_add_js()
function to include some JavaScript. Although the function is used correctly the JavaScript file is included before the jQuery script which causes an error.
drupal_add_js(drupal_get_path('module', 'rate') . '/rate.js', array('scope' => 'footer', 'group' => JS_THEME));
Even if I add the weight option ('weight' => 500)
it keeps be added before the jQuery script.
What am I supposed to do?
I am using newest Drupal 7, Rate API, and Rate widget.