drupal_build_form

6 views.module drupal_build_form($form_id, &$form_state)
7 form.inc drupal_build_form($form_id, &$form_state)
8 form.inc 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()

File

./views.module, line 1551
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);
}
Login or register to post comments