this is probably not even a bug but it might help someone. I have a view with random sorting. When the view is inserted into body twice using same token, it results in creating exact copy of view (view-dom-id-xxx) is same. So the results are same on both views which was not desirable in my case. I had to slightly change the code to $view_output = "<?php echo insert_view('".$view_name."', '".$display_id."', '".$args."'); ?>"; So the module prints php code inside body instead of view markup. Then I moved insertview filter above the php filter and that is it.

Comments

loparr created an issue. See original summary.

igor mashevskyi’s picture

Status: Active » 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.