index 9f4a6e867c19a278a84431ab82d4fb4b3ad976da..f841affd653cd372ca09f8967b4944c43d0de81d 100644 (file)
var $attributes= array();
var $objectclasses= array("whatever");
- function servdhcp ($config, $dn= NULL)
+ function servdhcp ($config, $dn= NULL, $parent= NULL)
{
- plugin::plugin ($config, $dn);
+ plugin::plugin ($config, $dn, $parent);
}
function execute()
/* Show tab dialog headers */
if ($this->is_account){
- $display= $this->show_header(_("Remove DHCP service"),
+ $display= $this->show_disable_header(_("Remove DHCP service"),
_("This server has DHCP features enabled. You can disable them by clicking below."));
} else {
- $display= $this->show_header(_("Add DHCP service"),
+ $display= $this->show_enable_header(_("Add DHCP service"),
_("This server has DHCP features disabled. You can enable them by clicking below."));
return ($display);
}
/* Check supplied data */
function check()
{
- $message= array();
-
+ /* Call common method to give check the hook */
+ $message= plugin::check();
+
return ($message);
}