[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/cck/includes/ -> content.node_form.inc (summary)

(no description)

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

Defines 5 functions

  content_form()
  content_field_form()
  content_multiple_value_form()
  content_add_more_submit()
  content_add_more_js()

Functions
Functions that are not part of a class:

content_form(&$form, &$form_state)   X-Ref


content_field_form(&$form, &$form_state, $field, $get_delta = NULL)   X-Ref
Create a separate form element for each field.

// TODO: $count param ? not used anymore ?
Hook_widget() picks up two new values, $count and $delta, to help
widgets know what information to return since multiple values are
sometimes controlled by the content module.

param: $form
param: $form_state
param: $field
param: $get_delta

content_multiple_value_form(&$form, &$form_state, $field, $items)   X-Ref
Special handling to create form elements for multiple values.

Handles generic features for multiple fields:
- number of widgets
- AHAH-'add more' button
- drag-n-drop value reordering

content_add_more_submit($form, &$form_state)   X-Ref
Submit handler to add more choices to a content form. This handler is used when
JavaScript is not available. It makes changes to the form state and the
entire form is rebuilt during the page reload.


content_add_more_js($type_name_url, $field_name)   X-Ref
Menu callback for AHAH addition of new empty widgets.




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7