params['do']=""; if($btn_name) { $this->btn_name = $btn_name; } } /** * Get label from plugin language file * * @return string */ public function getLabel() { if($this->btn_name) return $this->btn_name; /* if the button name has not been set up in the constructor you can get it now. Note: In the current case the name is guaranteed by having been hard-coded in the event of a name not having been found */ $hlp = plugin_load('action', 'overlay'); return $hlp->getLang('btn_dw_edit'); } public function getLink() { return 'javascript:jQuery("#overlay").toggle();void(0)'; } }