Update External Links

Update External Links module update the external URLs present in the body content and change them to be opened in the new tab.

This works differently than External New Tab and External Links modules. Both these module uses jQuery to open link in new tab, and script runs every time node is loaded.

In my module, I am using DOMDocument() and adding the target="_ blank" attribute to each external URL. After this node is saved again. So, in this way my module run only once to update external links, unlike External New Tab and External Links, where script is loaded each time.

This is more useful for migration perspective for Drupal 7.

Installation

  1. Copy the whole "update external links" directory to your modules
  2. Enable the module.
  3. Select required options in the form to suit your needs.

Features

  • Can updates the external links present in the node body content and change them to be opened in the new tab.

Documentation

Goal

  • Update the external URLs present in the node body content and change them to be opened in the new tab
Supporting organizations: 
By Providing the resources, guidance and support.
AttachmentSize
README.txt848 bytes

Project information

Releases