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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | link_codes.diff | 2.24 KB | greenskin |
| share-link_codes.patch | 2.43 KB | gribnif |
Comments
Comment #1
greenskin commentedThanks, 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.
Comment #2
greenskin commentedIn favor of @Gribnif's original patch.
Comment #3
spgd01 commentedWow this is old. I am in favor of the patch. It should be in the new release by now. Any progress?