1.20.x options.module form_options_to_text($options, $key_type)

Create a textual representation of options from an array.

Parameters

$options: An array of options used in a select list.

$key_type: How key/value pairs should be interpreted. Available options:

  • mixed
  • numeric
  • associative
  • custom
  • none

File

modules/field/modules/options/options.module, line 551
Defines selection, check box and radio button widgets for text and numeric fields.

Code

function form_options_to_text($options, $key_type) {
  module_load_include('inc', 'options', 'options.element');
  return _form_options_to_text($options, $key_type);
}