function form_options_from_text

cis7 options_element.module form_options_from_text($text, $key_type, $flat = FALSE, &$duplicates = array())
cle7 options_element.module form_options_from_text($text, $key_type, $flat = FALSE, &$duplicates = array())
elmsmedia7 options_element.module form_options_from_text($text, $key_type, $flat = FALSE, &$duplicates = array())
icor7 options_element.module form_options_from_text($text, $key_type, $flat = FALSE, &$duplicates = array())
meedjum_blog7 options_element.module form_options_from_text($text, $key_type, $flat = FALSE, &$duplicates = array())
mooc7 options_element.module form_options_from_text($text, $key_type, $flat = FALSE, &$duplicates = array())

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.

3 calls to form_options_from_text()
options_element_form_field_ui_field_settings_form_alter in sites/all/modules/ulmus/options_element/options_element.module
Implements hook_form_FORM_ID_alter().
_form_options_validate in sites/all/modules/ulmus/options_element/options_element.inc
Logic function for form_options_validate(). Do not call directly.
_form_type_options_value in sites/all/modules/ulmus/options_element/options_element.inc
Logic function for form_type_options_value(). Do not call directly.

File

sites/all/modules/ulmus/options_element/options_element.module, line 173
Defines an "options" form element type for entering select list options.

Code

function form_options_from_text($text, $key_type, $flat = FALSE, &$duplicates = array()) {
  module_load_include('inc', 'options_element');
  return _form_options_from_text($text, $key_type, $flat, $duplicates);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.