JaXnPriVate
New Pleskian
- Server operating system version
- Ubuntu
- Plesk version and microupdate number
- 18.0.49
I'm currently Developing an DynDNS Extension for Plesk Obsidian.
Unfortunately, there are some gaps in Plesk's documentation.
I have finished my UI so far but still want to integrate the whole thing as buttons in Plesk.
Do I have to reimport the module to load the hook? I have already disabled and re-enabled the module, but with no success.
Unfortunately, there are some gaps in Plesk's documentation.
I have finished my UI so far but still want to integrate the whole thing as buttons in Plesk.
Do I have to reimport the module to load the hook? I have already disabled and re-enabled the module, but with no success.
PHP:
<?php
namespace hooks;
class DDNSButtons extends \pm_Hook_CustomButtons
{
public function getButtons()
{
// TODO: Implement getButtons() method.
$buttonsIO = [[
'place' => self::PLACE_COMMON,
'title' => 'DynDNS',
"id" => "ddns-hook-button",
'description' => 'Dynamic Domain Name System integration.',
'icon' => pm_Context::getBaseUrl() . 'images/icon.png',
'link' => pm_Context::getActionUrl('domain'),
]];
return $buttonsIO;
}
}