webform: additional options for components
Please have a look to the new hook implemented in web form: hook_webform_select_options_info().

function mymodule_webform_select_options_info() {
  $items = array();

  $items['days'] = array(
    'title' =&gt; t('Days of the week'),
    'options callback' =&gt; 'webform_options_days',
    'file' =&gt; 'includes/webform.options.inc',
  );

  return $items;
}


The documentation for that hook describes it as follow:


  Define callbacks that can be used as select list options.
  
  Return value
  
  An array of callbacks that can be used for select list options. This array should be keyed by the "name" of the pre-defined list. The values should be an array with the following additional keys:
  
  
  title: The translated title for this list.
  options callback: The name of the function that will return the list.
  options arguments: Any additional arguments to send to the callback.
  file: Optional. The file containing the options callback, relative to the module root.