I want to create a parameter for plugin that will be read from and stored in my own table. I use a custom form field type, but I do not know where to add the code.
<?php
defined('_JEXEC') or die('Restricted access');
jimport('joomla.form.formfield');
class JFormFieldMyOptions extends JFormField {
protected $type = 'myOptions';
public function getInput() {
return '<select id="'.$this->id.'" name="'.$this->name.'">'.
'<option value="1" >Option 1</option>'.
'<option value="2" >Option 2</option>'.
'<option value="3" >Option 3</option>'.
'</select>';
}
}