Problem/Motivation

Currently you would have to fork the entire theme function to override the empty message.

Proposed resolution

I think it would be good to allow people to customise it, perhaps by allowing the use of an 'empty_message' key on the render element.

Comments

sam152’s picture

Status: Active » Needs review
StatusFileSize
new3.24 KB

Excuse the changes into a render array, I was going down a different path before I added the '#empty_message' key. I think it's a touch better looking, but can undo it.

sam152’s picture

StatusFileSize
new3.25 KB

Status: Needs review » Needs work

The last submitted patch, 2: 2538214-customise-paragraphs-empty-message.patch, failed testing.

sam152’s picture

Take 3.

sam152’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 4: 2538214-customise-paragraphs-empty-message.patch, failed testing.

sam152’s picture

Status: Needs work » Needs review
StatusFileSize
new3.29 KB
sam152’s picture

StatusFileSize
new3.33 KB

jeroen.b’s picture

Status: Needs review » Needs work

Thanks. Could you please reroll and maybe provide a patch?

bluegeek9’s picture

Status: Needs work » Closed (outdated)
//www.flaticon.com/free-icons/thank-you Thank you for your contribution!

Unfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.