function prepopulate_after_build in Prepopulate 7.2
Same name and namespace in other branches
- 8.2 prepopulate.module \prepopulate_after_build()
- 5 prepopulate.module \prepopulate_after_build()
- 6.2 prepopulate.module \prepopulate_after_build()
An #after_build function to set the values prepopulated in the request.
1 string reference to 'prepopulate_after_build'
- prepopulate_form_alter in ./
prepopulate.module - Implements hook_form_alter().
File
- ./
prepopulate.module, line 39 - Fill form elements with data from GET or POST values.
Code
function prepopulate_after_build($form, &$form_state) {
if (isset($_REQUEST['edit'])) {
$request = (array) $_REQUEST['edit'];
_prepopulate_request_walk($form, $request);
}
return $form;
}