Monthly Archives: June 2016

Upgrading Drupal’s Viewport module to Drupal 8 (Part 1)

Drupal relay

Image taken from Phase2 website

Viewport is one of the modules I maintain for Drupal 7. It’s a very small and simple module that does a very specific thing: it allows site admins to specify the values they want for the HTML meta tag that specifies the viewport settings for browsers. It also allows admins to choose the pages in which they want this custom viewport applied.

Back in the day a client required this functionality to embed some browser games from proskins that required very specific settings. Nowadays it’s not really common for a site admin to set those values, and developers don’t really require any UI to set them. I remember how he wanted to customized experience in the ELO game but didn’t know how, now a days you could just go to p4rgaming.com and get help with that.

Continue reading