There are times (such as in hook_form_alter or hook_form_submit implementations) when it would be useful to be able to determine if a form has been called as a subform. Ideally, I'd like this module to add a property to the form, such as '#is_subform' => true, that would assist in making this determination.

Comments

fago’s picture

Version: 5.x-1.3 » 6.x-1.x-dev

sounds to be a good thing, but this is probably to late for 5.x - as the module is already spread and so developers can't rely on the existence of it anyway. Perhaps for 6.x this would be a good idea to add.