Empty view is still displayed by "Insert view".
Propose the following logic:

1. Check if view is empty
1.a. YES: check if empty section is empty
1.a.a. YES: return FLASE
1.a.b NO: return $output
1.b. NO: return $output

Comments

vladimiraus’s picture

Status: Active » Needs review
StatusFileSize
new748 bytes
vladimiraus’s picture

StatusFileSize
new864 bytes

Forgot few lines :)

vladimiraus’s picture

StatusFileSize
new772 bytes

Some refactoring and adding destroy back.

Anonymous’s picture

Nice job Vladimir! Your patch solved the problem I was having!

igor mashevskyi’s picture

Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Everyone can apply the patch above (not tested by the maintainers, tested by the community) to their D7 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

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.