I'm finding this module very useful for storing ranges of both size and years. All of my fields only allow one value for units but they have the select list in the node edit form anyway with only one choice. If there's only one choice, it should just show it.

CommentFileSizeAuthor
#2 default_unit.patch1.63 KBakamaus

Comments

that0n3guy’s picture

A simple solution would be to just make the unit the default for that cck field. Then the user never needs to use the select box.

akamaus’s picture

Version: 6.x-1.0 » 6.x-1.1
Status: Active » Needs review
StatusFileSize
new1.63 KB

in case someone interested, I made a quick patch for 6.x-1.1. If only one unit type possible for a field, it would be set by default.

ahansen1’s picture

Has this patch been applied? If not, would it be possible to get it applied?

akamaus’s picture

@ahansen1, looks like the module was abandoned, at least last commit dated 2011-02-25, two weeks before I submitted this patch. Probably D6 doesn't draw many attention these days. And there is no comparable module for D7, afaik :(

bucefal91’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

The 6.x version is no longer supported, unfortunately.