You are here

function form_builder_after_build in Form Builder 7

Same name and namespace in other branches
  1. 6 includes/form_builder.admin.inc \form_builder_after_build()
  2. 7.2 includes/form_builder.admin.inc \form_builder_after_build()

File

includes/form_builder.admin.inc, line 578
form_builder.admin.inc Administrative interface for editing forms.

Code

function form_builder_after_build($element) {
  $element['#attributes']['readonly'] = 'readonly';
  foreach (element_children($element) as $key) {
    $element[$key] = form_builder_after_build($element[$key]);
  }
  return $element;
}