__('Button', __FILE__), // Module Title 'summary' => __('Form button element that you can optionally pass an href attribute to.', __FILE__), // Module Summary 'version' => 100, 'permanent' => true, ); } public function init() { parent::init(); $this->attr('id', ''); $this->attr('type', 'button'); $this->attr('name', 'button'); $this->attr('value', 'Button'); $this->attr('href', ''); $this->skipLabel = Inputfield::skipLabelHeader; } public function ___render() { $href = $this->attr('href'); if($href) $this->attr('href', ''); $out = parent::___render(); if($href) { $out = trim($out); $out = "$out"; $this->attr('href', $href); } return $out; } }