protected function generate_textbox($field) { $textbox = shortcode_atts(array('label' => '', 'maxLength' => '', 'minHeight' => '', 'minWidth' => '', 'multiline' => false, 'name' => false, 'tooltip' => '', 'type' => '', 'value' => ''), $field); if ($this->validate($field)) { return array_filter($textbox, array($this, 'return_textbox_value')); } return false; }