public function fixInput()
{
if (isset($this->config['forms'])) {
// Get only the table names from the forms
$table_names = array_pluck($this->config['forms'], 'table');
$table = implode('|', $table_names);
} else {
$table = '';
}
$links = isset($this->config['links']) ? json_encode($this->config['links']) : '';
$models = isset($this->config['models']) ? json_encode($this->config['models']) : '';
$form_fields = isset($this->config['form_fields']) ? json_encode($this->config['form_fields']) : '';
$input = array('name' => $this->config['info']['name'], 'alias' => $this->config['info']['alias'], 'hash' => $this->config['info']['hash'], 'version' => $this->config['info']['version'], 'author' => $this->config['info']['author'], 'vendor' => isset($this->config['info']['vendor']) ? $this->config['info']['vendor'] : '', 'website' => $this->config['info']['website'], 'target' => $this->config['target'], 'links' => $links, 'models' => $models, 'form_fields' => $form_fields, 'table' => $table, 'migrations' => $this->config['migrations'], 'enabled' => true);
return $input;
}