Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Mar 2013 at 14:55 UTC
Updated:
4 Jan 2014 at 02:58 UTC
Jump to comment: Most recent
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxabhiteshdas1945902git
We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and put yourself on the PAReview: review bonus high priority list. Then I'll take a look at your project right away :-)
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
abhitesh.das commented1) Deleted master branch.
4) Code has been fixed: http://ventral.org/pareview/httpgitdrupalorgsandboxabhiteshdas1945902git
Comment #3
arun ak commentedHi,
In marker settings page there is an option as 'Select marker position'.
I think its better to make this setting as link specific.
Comment #4
abhitesh.das commentedThanks for the suggestion! :)
Made 'Select marker position" link specific.
Please review again.
Comment #5
bkonetzny commentedNice and clean module, installation went as expected.
At the moment, the marker is always appended to the link text. Maybe an option to choose (prepend, append) on a per-link basis would be nice?
Theres a formatting issue in menu_marker_form_alter():
http://ventral.org/pareview/httpgitdrupalorgsandboxabhiteshdas1945902git
Comment #6
abhitesh.das commentedHi bkonetzny,
This seems to be a pretty useful feature. I will work on it.
For now, I have fixed the formatting issue.
Thanks.
Comment #7
Anonymous (not verified) commentedHey,
Concerning theme_link and theme_menu_link: I'm wondering if it's a good idea to place the overrides of these template functions in a .module file? Isn't there a hook you can use so you don't need to make your alterations on the theme layer level?
For example, if someone who doesn't know much about how Drupal works downloads your module and overwrites theme_menu_link him/herself in the template.php file, that would stop your module from working.
On line 246 of your .module file you have a string not between the t() function:
if ($marker_text == 'Other') {I think if the string on line 107 gets translated'other' => t('Other'),it won't be picked up anymore.Other than that your code looks nice.
Comment #8
abhitesh.das commentedI could not find any hook to implement it. I will still spend some more time in this direction. Please let me know if you come across something that we could use here.
Moreover, when I try this module with Menu CSS Names, it works fine. This module is also implementing the theme_menu_link() and works perfectly fine with my module.
It would work perfectly as we are storing the key and not the value & key remains the same always.
However, I have removed an extra t() from the module code.
Thanks. :)
Comment #9
hkirsman commentedGreat module!
There's a bug that should be fixed though :) After you set the marker and later try to change it (for example from sub to sup), changes don't appear on site. Clearing cache fixes things.
Minor stuff. You don't need quotation marks around description value in .info file.
Comment #10
edutrul commentedChanged Issue title. FYI: http://drupal.org/node/1011698
Comment #11
chetan-singhal commentedHi Abhitesh
This is not good practice to add css/js in hook_init. hook_init call on every page load.
So please replace this in theme.
Js/Css should be add in theme.
Comment #12
chetan-singhal commentedHi Abhitesh
This is not good practice to add css/js in hook_init. hook_init call on every page load.
So please replace this in theme.
Js/Css should be add in theme.
Comment #13
abhitesh.das commentedThanks :)
Comment #14
abhitesh.das commented@edutrul : Thanks :)
@hkirsman : Thanks for your input. I have removed the extra quote from the .info file. The cache issue is fixed too.
Comment #15
abhitesh.das commented@cpsinghal:
Hi,
Although your point is valid, this module works for menu item which would be present on almost all the pages. Moreover, the size of the css file is just 60 bytes.
Please let me know if there is any other way to achieve this. It would be highly appreciated.
Comment #16
abhitesh.das commentedComment #17
labor b commentedI think what cpsinghal is trying to tell you, is that's generally a bad idea to invoke a function inside hook_init, when there are other possibilities.
In your case, I would just drop the whole css file & use drupal's own classes for marking new menu entries.
For example the node module uses the class "marker" to mark updated entries.
You should somehow get rid of these overly long lines (like line 188). It's really difficult to read them.
Comment #18
ronfeathers commentedNice module!
A couple of small things:
Otherwise, great job. Looks helpful!
~R~
Comment #19
jamiehollernThis is a really cool little module, good job. I couldn't find any obvious issues with it so I only want to mention the parentheses for the following potential enhancements:
Otherwise, good job. I really like the look of this. I'm marking as reviewed and tested by the community.
Comment #20
abhitesh.das commented@ronfeathers, @labor b, @cpsinghal :
I have applied the default class "marker" to the marker. Hence, removed the css file as there it is not needed any longer.
@jamiehollern, @bkonetzny:
Below are the potential enhancements:
1. Option to select append/ prepend.
2. Option to select the type of braces viz. {}, (), <>
Thank you all for your help and suggestions.
Comment #20.0
abhitesh.das commentedModified the feature #2 as we have made the functionality menu specific rather than global.
Comment #21
abhitesh.das commentedAdded reviews.
Comment #22
klausimanual review:
But that are not application blockers, so ...
Thanks for your contribution, abhitesh.das!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #23
abhitesh.das commentedFixed the issue reported by Klausi.
@jamiehollern, @bkonetzny:
Enhancements:
1. Option to select append/ prepend. - Done
2. Option to select the type of braces viz. {}, (), <> - Not done. For now, user can add any kind of bracket while entering custom text for the marker.
Comment #24.0
(not verified) commentedAdded reviews