function form_builder_configure_page in Form Builder 6
Same name and namespace in other branches
- 7.2 includes/form_builder.admin.inc \form_builder_configure_page()
- 7 includes/form_builder.admin.inc \form_builder_configure_page()
Menu callback for configuring a field.
1 string reference to 'form_builder_configure_page'
- form_builder_menu in ./
form_builder.module - Implementation of hook_menu().
File
- includes/
form_builder.admin.inc, line 136 - form_builder.admin.inc Administrative interface for editing forms.
Code
function form_builder_configure_page($form_type, $form_id, $element_id) {
$output = drupal_get_form('form_builder_field_configure', $form_type, $form_id, $element_id);
if (isset($_REQUEST['js'])) {
// Return the newly changed field.
if (isset($_REQUEST['return'])) {
form_builder_field_json($form_type, $form_id, $element_id);
}
else {
$data = array(
'formType' => $form_type,
'formId' => $form_id,
'elementId' => $element_id,
'html' => $output,
'errors' => form_get_errors(),
);
form_builder_json_output($data);
exit;
}
}
return $output;
}