External Linking

jfraser - March 2, 2009 - 06:43
Project:Control Panel
Version:6.x-1.2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hey,

I was wondering if you could patch in the ability to easily add icons for external paths.

Currently to achieve this I add a line to your module which simply removes ":" from the filename so I can have an external link to say "http://www.google.com/analytics" with the image "http__www.google.com_analytics_.png" in my images folder.

$file_name = $image_directory . '/' . str_replace('/', '_', $working_path) . '.png';

to
$file_name = $image_directory . '/' . str_replace('/', '_', $working_path) . '.png';
$file_name = str_replace(':', '', $file_name);

If there is a better way to achieve this please tell me.

Thanks

#1

ailgm - May 7, 2009 - 13:35

I'd find that useful too. In my case, I have a link to another Drupal site that doesn't have clean urls, so the link is of the format:
http://www.othersite.com/index.php?q=pagename
Is the question mark also handled properly?

Right now I'm just overriding the control_panel_default.png, but that wouldn't work with two, and obviously isn't the right way to do it.

 
 

Drupal is a registered trademark of Dries Buytaert.