function drupal_build_form

2.x views.module drupal_build_form($form_id, &$form_state)

Views' replacement for drupal_get_form so that we can do more with less.

Items that can be set on the form_state include:

  • input: The source of input. If unset this will be $_POST.
  • no_redirect: Absolutely do not redirect the form even if instructed to do so.
  • rerender: If no_redirect is set and the form was successfully submitted, rerender the form. Otherwise it will just return.
9 calls to drupal_build_form()
template_preprocess_views_ui_edit_tab in includes/admin.inc
template_preprocess_views_ui_edit_view in includes/admin.inc
Preprocess the view edit page.
template_preprocess_views_ui_list_views in includes/admin.inc
Preprocess the list views theme
view::render_exposed_form in includes/view.inc
Render the exposed filter form.
views_ajax_form_wrapper in includes/ajax.inc
Wrapper around drupal_build_form to handle some AJAX stuff automatically. This makes some assumptions about the client.

... See full list

File

./views.module, line 1142
Primarily Drupal hooks and global API functions to manipulate views.

Code

function drupal_build_form($form_id, &$form_state) {
  views_include('form');
  return _drupal_build_form($form_id, $form_state);
}