function prepopulate_form_alter in Prepopulate 5
Same name and namespace in other branches
- 8.2 prepopulate.module \prepopulate_form_alter()
- 6.2 prepopulate.module \prepopulate_form_alter()
- 6 prepopulate.module \prepopulate_form_alter()
- 7.2 prepopulate.module \prepopulate_form_alter()
Implementation of hook_form_alter().
File
- ./
prepopulate.module, line 27 - Fill form elements with data from GET.
Code
function prepopulate_form_alter($form_id, &$form) {
if (isset($_GET['edit'])) {
$form['#after_build'][] = 'prepopulate_after_build';
}
}