jennatollerson
Follow
#drupal #civictech
-
Digital Services Georgia
- Atlanta, GA
- jenna.codes
- @jennatollerson
Pinned Loading
-
Drupal Form API, add an image field ...
Drupal Form API, add an image field that includes a preview and an alt text field to your custom module's configuration form. 1<?php
2// src/Form/SettingsForm.php
3/* Include theses dependencies in my_custom_module.info.yml
4dependencies:
5- drupal:file
-
Check if a page is iframed, add ifra...
Check if a page is iframed, add iframe specific enhancements. 1// This is meant to be included on child frames created with https://blog.apps.npr.org/pym.js/
2// This script checks if our page is iframed, and if so, induces it to cooperate.
3// This can allow us to use the same template for all pages on a site, and make being a child iframe an option for any page.
4document.addEventListener('DOMContentLoaded', function () {
5var inIFrame = (window.location != window.parent.location) ? true : false;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.