Download & Extend

Expose units in units.xml to the Units module

Project:Units API
Version:6.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The Units module is great for adding unit capabilities to CCK fields via MVF. Unfortunately, it does not ship with any unit definitions. UnitsAPI has many unit definitions. It would be great if the units defined in UnitsAPI were available to the Units module.

Tim Knittel

Comments

#1

Status:active» needs review

A patch to accomplish the above feature request. It uses the function unitsapi_define_units() (a Units hook) and is fully documented.

(Submitted separately from the above feature request to create an issue number in order to name the patch according to Drupal standards.)

Tim Knittel

AttachmentSize
unitsapi-622622-2.patch 2.27 KB

#2

Yes, this is a good idea

#3

Status:needs review» fixed

Commit http://drupal.org/cvs?commit=319106

Thanks, BrandTim! I tested it out with units.module and mvf.module, and things looked great!

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.