...
- Open the directory "/modules/servers/freenas".
- Create the file customconfig.php, or open the file, if it already exist.
- Insert following code
Code Block | ||
---|---|---|
| ||
<?php
if (!function_exists('freenas_customButtons')) {
function freenas_customButtons ($params) {
return "<a href='clientsservices.php?id={$params['serviceid']}&do=doSomething'>Do Something</a>";
}
} |
Using the publicly available API class, you can add your own functions to the module, the result would be as example:
...