Closed (fixed)
Project:
Hotkey
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2007 at 06:34 UTC
Updated:
23 Nov 2007 at 15:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
shawn conn commentedI might have not mentioned this but the Drupal form element name can usually be found in the id attribute in the format "edit-NAME" where NAME is the Drupal form element name. I think a set of rules would be much cleaner since (type of element, name of element, etc...), as it stands right now, this version requires a user to know a little about inner workings of Drupal. Ideally, a module should be as transparent to a user as possible.
Comment #2
gregglesI generally agree with your comments, but I think a few default rules would be a nice simple way to make this module more useful to users and easier for them to understand how to configure. An example is often easier to understand than a long set of instructions.
I'm not complaining about the install instructions or UI - they were fine.
Comment #3
shawn conn commentedI understand what you mean now. I've created CVS head version that now includes examples in the admin settings page (for Save, Delete, Previews buttons on a node editing page).
Comment #4
shawn conn commentedComment #5
gregglesThat seems pretty good. I was thinking more along the lines of having it automatically insert those values into the variable table.
So that when the module is enabled no configuration is necessary to get it working right out of the box.
The attached file provides this feature and also provides a hook uninstall to remove the variable (helpful for testing).
I'm respectfully setting this back to patch (code needs review). If you disagree with the idea feel free to move it back "closed".
Note that you'll need to remove the .txt from the filename.
Comment #6
BrightLoudNoise commentedHow about adding "insert" as a hotkey for adding instances of a field which allows multiple values?
After a brief look, it appears that the submit buttons that handle adding more instances all have an id suffix of "-more" in ahah forms.
Comment #7
greggles@BrightLoudNoise - are you suggesting that as another default? I personally don't use that button so I don't see the benefit of it as a default.
Did you test this new file? This issue is "needs review" so your help reviewing the code is appreciated.
Comment #8
shawn conn commentedGreggles, I've taken your ideas for .install file and implemented them in the 2.x version of hotkey. You can now assign hotkeys to form buttons by their label rather than the form id (which can be cryptic for non-Drupal devs). Also, hotkey now provides default keys for "Submit","Preview", and "Delete" buttons.