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 lost a little time with this, maybe something like the following would help others?
diff --git a/sites/all/modules/disqus/README.txt b/sites/all/modules/disqus/README.txt
index b106e9a..41f5d2b 100644
--- a/sites/all/modules/disqus/README.txt
+++ b/sites/all/modules/disqus/README.txt
@@ -67,3 +67,12 @@ Example: Calling threads/details and threads/update
}
}
+
+ADDING YOUR CALLBACK FROM DRUPAL_ADD_JS
+=============
+
+You may make use of passing callback's to Disqus at load time
+
+drupal_add_js(array('disqus' => array('callbacks' => array('onReady' => array("myCallback")))), 'setting');
+
+
Comments
Comment #1
slashrsm CreditAttribution: slashrsm commentedDefault way of adding callbacks is via form element. See: http://drupalcode.org/project/disqus.git/blob/refs/heads/7.x-1.x:/disqus...
Patch with proper help about callbacks usage would be more than welcome.