[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/options_element/ -> options_element.module (summary)

(no description)

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

Defines 7 functions

  options_element_elements()
  options_element_theme()
  form_options_expand()
  form_options_validate()
  form_type_options_value()
  form_options_to_text()
  form_options_from_text()

Functions
Functions that are not part of a class:

options_element_elements()   X-Ref
Implementation of hook_elements().

Defines the #type = 'options' form element type.

The 'options' form element type is useful when collecting a series of
values in a list. The values within the list may optionally have unique
keys, such as that in a array structure. In addition, a default choice
(or several default choices) may be selected by the user.


options_element_theme()   X-Ref
Implementation of hook_theme().


form_options_expand($element)   X-Ref
Expand the "options" form element type.

The "options" type is simply an enhanced textarea that makes it easier to
create key|value pairs and put items into optgroups.

form_options_validate($element, &$form_state)   X-Ref
Validate the "options" form element type.


form_type_options_value(&$element, $edit = FALSE)   X-Ref
This function adjusts the value of the element from a text value to an array.


form_options_to_text($options, $key_type)   X-Ref
Create a textual representation of options from an array.

param: $options
param: $key_type

form_options_from_text($text, $key_type, $flat = FALSE, &$duplicates = array()   X-Ref
Create an array representation of text option values.

If the Key of the option is within < >, treat as an optgroup

<Group 1>
creates an optgroup with the label "Group 1"

<>
Exits the current group, allowing items to be inserted at the root element.



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