function form_builder_positions in Form Builder 6
Same name and namespace in other branches
- 7.2 includes/form_builder.admin.inc \form_builder_positions()
- 7 includes/form_builder.admin.inc \form_builder_positions()
Form containing all the current weights and parents of elements.
2 string references to 'form_builder_positions'
- form_builder_interface in includes/
form_builder.admin.inc - Main form building interface. Can be used as a menu callback.
- _form_builder_add_element in includes/
form_builder.admin.inc - Menu callback helper for adding or cloning a field.
File
- includes/
form_builder.admin.inc, line 233 - form_builder.admin.inc Administrative interface for editing forms.
Code
function form_builder_positions(&$form_state, $form_cache, $form_type, $form_id) {
$form = array(
'#tree' => TRUE,
'#form_builder' => array(
'form_type' => $form_type,
'form_id' => $form_id,
'form' => $form_cache,
),
);
_form_builder_positions_prepare($form, $form_cache);
// Drupal MUST have a button to register submissions.
// Add a button even though the form is only submitted via AJAX.
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Update'),
);
return $form;
}