Skip to content
View jennatollerson's full-sized avatar

Organizations

@GeorgiaGov

Block or report jennatollerson

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. 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
    4
    dependencies:
    5
      - drupal:file
  2. 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 http://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.
    4
    document.addEventListener('DOMContentLoaded', function () {
    5
      var inIFrame = (window.location != window.parent.location) ? true : false;