Skip to content

Instantly share code, notes, and snippets.

@init90
Created March 22, 2017 15:23
Show Gist options
  • Select an option

  • Save init90/155c388485a25e26b84adf6e46fb76e9 to your computer and use it in GitHub Desktop.

Select an option

Save init90/155c388485a25e26b84adf6e46fb76e9 to your computer and use it in GitHub Desktop.
Run ctools popup after page load.
Drupal.behaviors.security_questions_popup = {
attach: function(context, settings) {
var need_add_questions = Drupal.settings.global.need_add_security_questions;
if (need_add_questions) {
$(window).bind('load', function() {
$('.security_questions_hide_link').click();
});
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment