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
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
Comment #1
dcam commentedYou 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.
Comment #2
drew29 commentedHello,
I can't unfortunately alone, can someone help me there? Thanks in advance
kind regards
drew
Comment #3
dcam commentedClosing old support requests. Marking this as a duplicate of #1579536: Allow other modules to alter the ingredient units list.