Hello,

I need new units, how can I create new units. It is possible to create new units in the template.php file so I don't need to change the module file.

can you explain me how can I solve this?

kind regards
drew

Comments

dcam’s picture

You can try applying the patch in #1579536: Allow other modules to alter the ingredient units list and then create a custom module which implements the hook that the patch creates, mymodule_recipe_ing_units_alter(&$units). The patch hasn't been tested yet and it may be a few more days before I can get around to testing it myself. My initial impression of it, however, is that it should work to do what you want.

drew29’s picture

Hello,

I can't unfortunately alone, can someone help me there? Thanks in advance

kind regards
drew

dcam’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

Closing old support requests. Marking this as a duplicate of #1579536: Allow other modules to alter the ingredient units list.