For administrators it can be confusing and more hassle than needed, to create Bookable Unit Type in one form, Unit Description node in another, and reference the Unit Description node in the Bookable Unit Type form.

It is much more user-friendly to have both in one form as the two entities correspond one to one exclusively.

It is fairly simple to combine the two in the Bookable Unit Type form by using Multiple Entity Form.

It does add one more dependency to Multiple Entity Form, but it can be worthwhile "improving" the UX this way.

Please consider it.

Thanks again for this wonderful module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yalu’s picture

Here's a patch to do just that.

yalu’s picture

additionally delete Unit Description node when corresponding Bookable Unit Type is deleted.

This patch provided introduces two new api.php files for unit_description sub module introducing crud hooks for entities described here https://drupal.org/node/999938. Only the delete hook is necessary for the functionality to work - but other hooks are there, as they can be nice to have around.

Thanks!

yalu’s picture

I did consider contributing an add-on module separately by using hook_form_alter but for some reason multiple_entity_form does not work using that hook.