Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I tried to add a link protocal mms:// and rstp:// and the link would turn out to be my url + the link instead of just the link..ftp, http works fine just when I added the two new protocals to the link.module it would not work...any sugggestions...I ready had this module installed when I tried to hack it
Comments
Comment #1
quicksketchLink module uses a standard set of protocols that ship with Drupal, however you can add more protocols without hacking the module at all! The list of protocols is stored in a variable, though there is no admin interface for changing this value. You can change it with two methods:
1. If you have devel module, execute this code in the "Execute PHP" block:
2. Or you can hardcode the value in your settings.php file. Scroll down to the bottom of the settings.php file and you'll find a commented out section of code like this:
Change this to:
I'd also suggest replacing your link module with a fresh non-hacked copy. Hacks are bad! :D
Comment #2
deadlyromio CreditAttribution: deadlyromio commentedGreat..I just tried option one with devel module and work on the first try. I originally opted for the section option but was getting back some errors that I couldn't fix so tried the first option which I should have in the first place...thanks for your time in answering
Comment #3
quicksketchRock!
I had a typo in my second option (I used a semi-colon instead of a comma):
But once you have it set in your database, no worries. It'll stay there nice and safe either way.
Comment #4
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
googlg CreditAttribution: googlg commentedI add the itms-services protocol by rewrite the settings.php file, add the following code:
$conf = array('filter_allowed_protocols' => array('itms-services','http', 'https', 'ftp', 'news', 'nntp', 'telnet','mailto', 'irc', 'ssh', 'sftp', 'webcal', 'mms', 'rstp'));