Cleaner elgg_format_element usage #9766

Closed
mrclay opened this Issue Apr 23, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@mrclay
Member

mrclay commented Apr 23, 2016

Since element attributes can't start with #, we should allow specifying $text via $attrs["#text"] and same for $options.

@mrclay

This comment has been minimized.

Show comment
Hide comment
@mrclay

mrclay Apr 23, 2016

Member

Single array argument with #element and everything else.

Member

mrclay commented Apr 23, 2016

Single array argument with #element and everything else.

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Apr 25, 2016

feature(html): allows cleaner elgg_format_element usage
All arguments can be given as a single array, with non-attributes specified
via keys `#tag_name`, `#text`, and `#options`.

Fixes #9766

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Apr 25, 2016

feature(html): allows cleaner elgg_format_element usage
All arguments can be given as a single array, with non-attributes specified
via keys `#tag_name`, `#text`, and `#options`.

Fixes #9766

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue May 26, 2016

feature(html): allows cleaner elgg_format_element usage
All arguments can be given as a single array, with non-attributes specified
via keys `#tag_name`, `#text`, and `#options`.

Fixes #9766

@mrclay mrclay closed this in #9840 May 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment