Drupal backport.module README.txt
==============================================================================

Backport Makes a subset of the Drupal 4.7 Forms API and Javascript available to
4.6 modules. 


Requirements
------------------------------------------------------------------------------
This module is written for Drupal 4.6.


Installation
------------------------------------------------------------------------------
Create a directory backport in your modules directory and copy all the module's
files into it. Enable the module via the administer > modules page.


Usage
-----------------------------------------------------------------------------
To use Backport, produce, output, and save forms as normally with the Forms
API. You can use all the regular methods, including form_alter(), though
of course only forms created through the Forms API will be altered.


To test:
* Create a new 'page' node and choose PHP as the filter type (requires admin
  permission)
* For the page body, put the following and then preview. You should get a 
  rendered form.

<?php
$form = array();
$form['title'] = array(
  '#type' => 'textfield',
  '#title' => t('Title')
);
$form['body'] = array(
  '#type' => 'textarea',
  '#title' => t('Body')
);

print drupal_get_form('testform', $form);
?>