Closed (fixed)
Project:
Service links
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Jun 2010 at 22:37 UTC
Updated:
2 Oct 2010 at 21:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
nancydruHere's a patch to add a title setting. At no extra charge, you get a settings page that is Vertical Tabs ready. I'v also created CSS files for the admin and node displays.
Comment #2
Melissamcewen commentedThanks for this great patch! Here is my review:
* Is the patch in unified diff format? Yep
* Does the patch meet Drupal's coding standards? The only problem I see is that the CSS isn't alphabetized, which I've correct in this patch.
* Is the code secure? Don't know.
* If the patch makes major changes to a function or adds a new one, does it have appropriate code comments? No major changes.
* Does the patch degrade performance and does it need benchmarking? No
* Does the patch add theme functions or .tpl.php files where appropriate? NA
* If new pages are added, are they are in a logical place? If forms or other UI elements are added, are they intuitive and logical to use? Does it come with appropriate contextual help? Is the interface consistent? NA
Let me know if this patch works!
Comment #3
coltraneIf the user doesn't enter anything in the variable the default text is ran through t() twice. Recommend replacing with the following where default isn't run through t():
The fieldset and CSS stuff is another feature and typically it's best to separate features in patches. One to make the title customizable and another for fieldset + CSS, but I'll let the module maintainer make the call. I haven't applied the patch, just looked at it.
Comment #4
coltraneActually the $title placed directly in t() would open a cross-site scripting attack via the links title. Text pass directly to t() is not sanitized. You should instead do something like following example, or review http://drupal.org/writing-secure-code for other approaches.
Comment #5
Melissamcewen commentedThanks Coltrane. I've added your suggestions to the patch. I also found some missing spaces on lines 12-15 that I corrected. So- so far this patch adds in customized title, created CSS files for the admin and node displays for vertical tabs, and corrects some code styling.
Comment #6
Melissamcewen commentedComment #7
nancydruLooks good, I will try to test your changes in the next day or so.
Comment #8
Gabriel R. commentedGood to see this coming up, and with i18n support. Thanks!
Comment #9
fitter commented#5: What do you mean when you say "node displays for vertical tabs?" I have the vertical tab module installed but I'm not seeing any integration with vertical tabs. Sorry if I misunderstood what that actually does.
Comment #10
nancydruIt is VT-ready, but needs to be enabled in settings.php, IIRC.
Comment #11
TheCrow commentedAdded it, Thank you!
Comment #12
nancydruThanks.