Menu icon
RedCrackle
Menu icon
Services
01Design Transformation
About UsCase StudiesBlogContact Us

<

Blog post

How To Open Any Link In Drupal Overlay?

Neerav Mehta

Founder & CEO

Drupal 7 comes with an Overlay module. Once you enable it, all admin links open in an overlay.

But non-admin links do not open in the overlay by default. There is a way to open a non-admin link in the overlay. Use hook_admin_paths_alter().

/**
* Implements hook_admin_paths_alter().
*/
function mymodule_admin_paths_alter(&$paths) {
  $paths['node/*'] = TRUE;
}

Now when you click on any node link, it will open in an overlay. Wasn't that simple?

Neerav Mehta

Neerav Mehta

Founder & CEO

Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.

View all posts

>

Read Next

10 Tips For Entrepreneurs In 2015

10 Tips For Entrepreneurs In 2015

Learn more

10 Ways To Increase Productivity At Work

10 Ways To Increase Productivity At Work

Learn more

30 best WordPress widgets for your site

30 best WordPress widgets for your site

Learn more

Let’s get you started!

Contact Us

>

RedCrackle

Explore

About Us

Services

Contact Us

Our address

5346 Gerine Blossom Dr,

San Jose, CA 95123

USA

Socials

Twitter
LinkedIn

© 2023 RedCrackle. All rights reserved.