You are here

function commerce_webform_webform_component_info in Commerce Webform 7.2

Same name and namespace in other branches
  1. 8 commerce_webform.module \commerce_webform_webform_component_info()
  2. 7 commerce_webform.module \commerce_webform_webform_component_info()

Implements hook_webform_component_info(). Define the commerce webform field

File

./commerce_webform.module, line 245
Commerce Webform module file

Code

function commerce_webform_webform_component_info() {
  $components = array();
  $components['productfield'] = array(
    'label' => t('Commerce product skus'),
    'description' => t('List commerce products linked to this webform.'),
    'features' => array(
      'default_value' => FALSE,
      'email' => TRUE,
      'email_address' => FALSE,
      'email_name' => FALSE,
      'conditional' => TRUE,
    ),
    'conditional_type' => 'productfield',
    'file' => 'productfield.inc',
  );
  return $components;
}