| 1 |
$Id:$
|
| 2 |
|
| 3 |
PREPOPULATE MODULE
|
| 4 |
==================
|
| 5 |
By ea.Farris, based on an idea from chx.
|
| 6 |
Maintained by Addison Berry (add1sun).
|
| 7 |
|
| 8 |
Prepopulate is an attempt to solve the problem that resulted from
|
| 9 |
the discussion at http://www.drupal.org/node/27155 where the $node object,
|
| 10 |
it was (correctly, I believe) decided, should
|
| 11 |
not be prefilled from the $_GET variables, and instead, the power of the
|
| 12 |
FormsAPI should be used to modify the #default_value of the form
|
| 13 |
elements themselves.
|
| 14 |
|
| 15 |
This functionality will make things like bookmarklets easier to write,
|
| 16 |
since it basically allows forms to be prefilled from the URL, using a
|
| 17 |
syntax like:
|
| 18 |
|
| 19 |
http://www.example.com/node/add/blog?edit[title]=this is the title&edit[body]=body goes here
|
| 20 |
|
| 21 |
Refer to the USAGE.txt file or the online handbook at http://drupal.org/node/228167 for more examples.
|
| 22 |
|
| 23 |
Please report any bugs or feature requests to the Prepopulate issue queue:
|
| 24 |
http://drupal.org/project/issues/prepopulate
|