The Problem:

I want to make a special user entry form, but it's very much a special case. I also don't want to have to reapply a patch to this module every time it updates.

The Solution:

hook_inline_entity_form_controller_info()

This hook returns an array of the form:

return array('entity_type' => 'ControllerClassName');

This information is applied during hook_entity_info_alter().

Comments

mile23’s picture

Status: Active » Needs review
StatusFileSize
new2.48 KB

..And a patch.

mile23’s picture

StatusFileSize
new5.59 KB

And with a test.

bojanz’s picture

Not sure what you gain by doing this.
The ability to add a controller after IEF, therefore overriding it?
You could just use hook_module_implements_alter() for that, while we'd keep on using
a standard hook (entity_info_alter()) instead of inventing a custom one.

mile23’s picture

Status: Needs review » Closed (works as designed)

Yah, I figured it out. :-)

Thanks for your attention.