You are here

function webform_component_options in Webform 7.4

Same name and namespace in other branches
  1. 6.3 webform.module \webform_component_options()
  2. 7.3 webform.module \webform_component_options()

Build a list of components suitable for use as select list options.

2 calls to webform_component_options()
webform_components_form in includes/webform.components.inc
The table-based listing of all components for this webform.
webform_conditionals_form_validate in includes/webform.conditionals.inc
Validate handler for webform_conditionals_form().

File

./webform.module, line 4914
This module provides a simple way to create forms and questionnaires.

Code

function webform_component_options($include_disabled = FALSE) {
  $component_info = webform_components($include_disabled);
  $options = array();
  foreach ($component_info as $type => $info) {
    $options[$type] = $info['label'];
  }
  return $options;
}