function field_delete_form($data)
{
    $field = new DbField();
    $field->byID($data['id']);
    $frm = new DbForm();
    $frm->build('field_delete_form', $field, $_SESSION['log_access_level']);
}
<?php

/**
 * @file: uploader_add_file.php
 * Server Side Ajax Uplader
 */
session_start();
require_once '../../bootstrap.php';
$field_id = $_GET['field_id'];
// Based on the element id $_GET['field_id'] we can perform validations.
$field = new DbField();
$field->byID($field_id);
if (!$field->affected > 0) {
    // DataManager should output the error.
    return FALSE;
}
// Field values attributes.
if (!empty($field->field_values)) {
    $field_values = explode('|', $field->field_values);
    foreach ($field_values as $value) {
        $option = explode('=', $value);
        switch ($option[0]) {
            case 'limit':
                $field_limit = $option[1];
                break;
            case 'type':
                $field_type = explode(',', $option[1]);
                break;
            case 'size':
                $field_size = substr($option[1], 0, -1);
                $field_size_unit = substr($option[1], -1);