Solution: How to add view parameter support to your custom module view

Have you ever wanted to add view parameter support to your custom module view templates?

Example Solution #1

Here is a quicker way to add view parameters. Simply add this snippet of php into your custom module view.

 

Place the above PHP snippet code before you include your primary module view template within $Result['content'].

 

Example Solution #2

Here is a longer form way to view parameters. Simply add this snippet of php into your custom module view.

 

Place the above PHP snippet code before you include your primary module view template within $Result['content'].