function formatElement() { static $widget_counter = 1; $html = rex_var_link::getLinkListButton($widget_counter, $this->getValue(), $this->category_id); $html = str_replace('LINKLIST[' . $widget_counter . ']', $this->getAttribute('name'), $html); $widget_counter++; return $html; }