Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 May 2009 at 12:34 UTC
Updated:
22 Mar 2011 at 01:25 UTC
Node create/edit page looks fine with vertical tabs. Comment settings in this page has help text like
Users with 'post comments' permission can post comments.
Obviously this help text will make a newbie to search for permission settings, so i think its better to have this text links to admin/user/permissions page. I have attached a patch to do this task, please test it and let me know your suggestions.
| Comment | File | Size | Author |
|---|---|---|---|
| drupal_comment_settings_1.patch | 1.03 KB | sivaji_ganesh_jojodae |
Comments
Comment #1
sivaji_ganesh_jojodae commentedComment #2
shawn dearmond commentedI applied this patch to D7 HEAD and it did what it was advertised to do.
Comment #3
yoroy commentedDid you click the link? From reading the patch (not applied it) I think there is a "/" missing here:
l(t('permission'), 'admin/user/permissions')) shouldn't that be
l(t('permission'), '/admin/user/permissions')) ?
Comment #4
shawn dearmond commentedYes, I clicked the link; and no, you don't need the leading "/". The l() function uses internal Drupal paths which do not include leading slashes.
Comment #5
yoroy commentedwhoops, pardon my code ignorance. All good to go then.
Comment #6
sivaji_ganesh_jojodae commentedPlease run this code in your Execute PHP block and find the difference.
output
yoroy--
Comment #7
yoroy commentedyah nevermind me, I don't code so will refrain from commenting on it :)
Comment #8
Bojhan commentedAttaching quick fix for webchick
Comment #9
webchickThat's not quite right. It should be something like
<a href="@url">permission</a> ... array('@url' => url('admin/user/permissions')(check other similar strings in core). We like to keep the link title in the string to provide translators context.Comment #10
shawn dearmond commentedYa know... after thinking about it for a minute from a ux perspective, I'm not sure this issue should be fixed. The user who sees this message may not have access to administer permissions. Indeed, none of the other settings at the bottom of a node form have links to the permissions page, why should this one?
Comment #11
sivaji_ganesh_jojodae commentedComment #14
mr.baileysResetting title after spam.