Living in Malta, this is the blog and journal of Simon Facciol.

Here we discover new technologies and try to discover solutions to common problems.

How to stop a youtube iframe video after closing a popup

How to stop a youtube iframe video after closing a popup

If you ever embed a youtube video in a popup window, unless you use a third-party modal plugin, you would need to stop the video when the popup is closed so that it does not keep playing in the background. To do this I found the code below on StackOverflow by shabeer90.

Drupal 7 – Enable a theme from a custom module via code

Drupal 7 – Enable a theme from a custom module via code