Suggestions for link_codes

Gribnif - May 13, 2009 - 21:23
Project:Share
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Attached is a patch that contains some suggestions for link_codes:
1. Use the url() function, so that the generated code works with https: servers.
2. Don't say, "Click here to view", since that's considered bad practice.
3. Make the "View [title]" strings translatable. As a side-benefit, run the $node->title through check_plain().
4. Simplify the code a bit, by removing some redundancy.

AttachmentSize
share-link_codes.patch2.43 KB

#1

greenSkin - May 14, 2009 - 00:03

Thanks, I made a tiny change to your patch that passes a path alias inside of the url() instead of defaulting to 'node/##'. I'd like to default to the path alias and possibly make a setting allowing to not use the path alias.

AttachmentSize
link_codes.diff 2.24 KB
 
 

Drupal is a registered trademark of Dries Buytaert.