Took me all day to figure out, but filter_form() is missing some key information on parameters, mostly notably the $parent one, which is required if you want multiple formats on the same page. This patch fixes the documentation of this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

m3avrck’s picture

FileSize
770 bytes

Ooops, patch had debug code. Here's the real one.

Zen’s picture

Nitpick: Missing periods at the end.
I'm also not sure that the caption for $parents is entirely accurate as it might be required even if there's only one parent which is not 'format'.

-K

Zen’s picture

Status: Reviewed & tested by the community » Needs work
m3avrck’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
815 bytes

Zen, good call, both fixed.

m3avrck’s picture

FileSize
815 bytes

Zen, good call, both fixed.

Zen’s picture

+1 :)

-K

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)