Monday 5 October 2015

How to fix ctools_add_js() not working issue in ctools modal form in drupal 7.x

In this blog we are going to explain how to fix ctools add is() not working issue in c tools modal in drupal 7.x .For this you must have to use you must have to use Drupal.behaviors, if you want to add custom jQuery code.

So it's a suggestion if anyone stuck with such an issue, go head with Drupal.behaviors in the following manner and it really works:

(function ($, Drupal, window, document, undefined) {
Drupal.behaviors.my_custom_behavior = {
attach: function(context, settings)
…..
…...

No comments:

Post a Comment