Closed (won't fix)
Project:
Menu Token
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
10 Mar 2011 at 00:33 UTC
Updated:
18 Dec 2012 at 02:16 UTC
There is a hook_token already, so "menu_token" seems to be an implementation of it, instead of a module.
Comments
Comment #1
dealancer commentedIt is ok, I think. So if you want to use hook_token, please use menu_token_token and it will.
Comment #2
dealancer commentedIn other hand it would be difficult to rename module.
Comment #3
dealancer commentedI am not sure we need to do it - the reason is no so clear fo me, so I am closing this issue.
Comment #4
develcuy commentedThe thing for me is that menutoken_get_tokens() is more clear than menu_token_get_tokens()... another kind of misstakes may happen. I think that is a good practice to not use "_" in module names because it is the *namespace*.
Anyway, I will appreciate feedback from @ygerasimov before deciding to close this issue.
Comment #5
dealancer commentedHey develCuy could you provide us with links on some authorized sources which have more description for this issue? I would appriciate this, cause I am not understand the problem really good.
Do you mean the problem is in following. When we have a function menu_token_get, drupal could treat it like implemetation of hook_token_get?
Comment #6
develcuy commentedThanks for asking @dealancer,
It is not an official practice but is something that I want to follow: "Namespaces should be lowercase alphanumeric characters only" it excludes "_" and "-".
See #367355: Module names should not contain an underscore for reference.
Comment #7
ygerasimov commented@develCuy I don't think that this is a really a problem about renaming this module. First of all we need to think about sites that already have installed this module. There are plenty of them. As we don't have any problems with name yet and we have all doxigen comments in the code (where expicitly stated what is the name of hook) I wouldn't bother for now.
Comment #8
develcuy commentedThanks for your feedback @ygerasimov!
I understand the risk and implications, but prefer to do the change now, because later we will have more users. The path and project will be kept as menu_token, so the filenames and functions will be renamed.
Hope to start working on it next week and release as version 2.x
Comment #9
dealancer commentedIt's to late to rename module, hooks and tables, so let's close it.
Comment #10
develcuy commentedI still want to rename it ;)
Comment #11
dealancer commentedok.
Comment #12
develcuy commented7k installations ;)