Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use it for questions about the Form API. Don't use it for entity or entity field forms.
1
vote
Accepted
Insert form fields into form
Instead of printing the form when you load it, create a new form item of type markup and add your subform there as markup.
$form['subform'] = array(
'#type' => 'markup',
'#markup' => $location,
) …
1
vote
How do I remove a validation handler from a form?
Use hook_form_alter() to change the $form['#validate'] to be your custom validate handler.
function custom_module_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'your_form_id') {
$ …