Wednesday 13 July 2016

How to load jQuery UI for anonymous users in Drupal 7?

jQuery UI is no longer loads for anonymous users. We can load it in the preprocess html function as follows:
function template_preprocess_html(&$vars){
        drupal_add_library('system', 'ui');
}

No comments:

Post a Comment

Your comment is so valuable as it would help me in my growth of knowledge.