$info['title'], 'description' => $info['description']]; $reader = new SourceReader($info['source']); $parser = new Parser($reader); $form['questions'] = $parser->parse(); if (boolval($info['active'])) { $form['id'] = $view_hash; } else { $form['id'] = "null"; } echo generateFormHTML($form);