function drawForm($data)
{
    //mydump($data,"data");
    if ($data['link'] == 0) {
        $data['link'] = array('new' => '#', 'edit' => '#', 'detail' => '#', 'delete' => '#', 'copy' => '#', 'save' => '#', 'back' => '#');
    }
    $form = '';
    $form .= drawFormHeader($data['headline'], $data['hilfe'], $data['button'], $data['link']);
    $form .= drawFormBody($data['data'], $data['object']);
    if (isset($data['noform']) == true) {
        return $form;
    } else {
        return '<form name="' . $data['headline'] . '" method="POST" action="' . $data['link']['save'] . '"><input type="hidden" name="p" value="' . substr($data['link']['save'], strrpos($data['link']['save'], '=') + 1) . '" />' . $form . '</form>';
    }
}
<?php

require_once XOX_BIN . '/newsletter/dummy.php';
require_once XOX_LIB . '/functions.php';
if (empty($form_title)) {
    $form_title = initvar('form_title', 'Title');
}
if (empty($form_text)) {
    $form_text = initvar('form_text', 'Text');
}
if (empty($form_links)) {
    $form_links = initvar('form_links', array('back' => 'javascript:history.back();'));
}
echo drawFormHeader($form_title, $form_text, 68, $form_links);