Admin Area Content/Output
The output from modules is defined in the function yourmodule_output. This should be actually output (i.e. echo’d) and not returned. All output is captured by WHASOLS and displayed within the admin interface template.
Variables
The output function is passed all the fields defined in your modules configuration function, along with the values users have set for them, as well as a modulelink parameter which provides the URI to link back to the module.
Linking/Actions
Using the modulelink parameter you can build urls that post back to your module. The modulelink will be in the format “/admin/apps/yourmodule_name/parameter1/parameter2/parameter3/?act=any thing”. For links you can then append “_&var1=x&var2=y”. For forms, use the POST form method to receive user input.
Within the output function, the $_GET or $_POST variables can be accessed directly to retrieve user input.
Admin User Data
To access the currently logged in admin user ID, use $_SESSION. You can use the ID to retrieve any additional information that is required from the tbladmins table in the database.
Output Function Example:
<?php
function yourmodule_output($params=[]) {
//Your Module Output HTML Content Here
}