[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/views/includes/ -> form.inc (summary)

(no description)

File Size: 301 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  _drupal_build_form()
  drupal_rebuild_form_new()
  drupal_process_form_new()
  drupal_validate_form_new()
  views_process_dependency()
  views_process_check_options()

Functions
Functions that are not part of a class:

_drupal_build_form($form_id, &$form_state)   X-Ref


drupal_rebuild_form_new($form_id, &$form_state, $args, $form_build_id = NULL)   X-Ref
Views' replacement of drupal_rebuild_form.

This change merely respects a form's wishes not to be cached.

drupal_process_form_new($form_id, &$form, &$form_state)   X-Ref
Views' replacement for drupal_process_form that accepts commands
not to redirect, as well as forcing processing of 'get' method forms.


drupal_validate_form_new($form_id, $form, &$form_state)   X-Ref
The original version of drupal_validate_form does not have an override for
the static check to only validate a form id once. Unfortunately, we need
to be able to overridet his.


views_process_dependency($element, $edit, &$form_state, &$form)   X-Ref
Process callback to add dependency to form items.

Usage:

On any form item, add
- @code '#process' => 'views_process_dependency' @endcode
- @code '#dependency' => array('id-of-form-without-the-#' => array(list, of, values, that, make, this, gadget, visible)); @endcode

views_process_check_options($element, $edit, &$form_state, &$form)   X-Ref
#process callback to see if we need to check_plain() the options.

Since FAPI is inconsistent, the #options are sanitized for you in all cases
_except_ checkboxes. We have form elements that are sometimes 'select' and
sometimes 'checkboxes', so we need decide late in the form rendering cycle
if the options need to be sanitized before they're rendered. This callback
inspects the type, and if it's still 'checkboxes', does the sanitation.



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7