You are here

function form_builder_configure_page in Form Builder 7

Same name and namespace in other branches
  1. 6 includes/form_builder.admin.inc \form_builder_configure_page()
  2. 7.2 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 135
form_builder.admin.inc Administrative interface for editing forms.

Code

function form_builder_configure_page($form_type, $form_id, $element_id) {
  $form = drupal_get_form('form_builder_field_configure', $form_type, $form_id, $element_id);
  if (!isset($_REQUEST['js'])) {
    return $form;
  }
  $commands[] = array(
    'command' => 'formBuilder-displayForm',
    'selector' => '#form-builder-element-' . $element_id,
    'data' => drupal_render($form),
  );
  return array(
    '#type' => 'ajax',
    '#commands' => $commands,
  );
}