You are here

function synonyms_commerce_field_widget_info in Synonyms 7

Implements hook_field_widget_info().

File

synonyms_commerce/synonyms_commerce.module, line 28
Provides synonyms integration with Commerce.

Code

function synonyms_commerce_field_widget_info() {
  return array(
    'synonyms_commerce_autocomplete' => array(
      'label' => t('Synonyms friendly autocomplete'),
      'field types' => array(
        'commerce_product_reference',
      ),
      'settings' => array(
        'size' => 60,
        'synonyms_autocomplete_path' => 'synonyms-commerce/autocomplete',
        'suggestion_size' => 10,
        'suggest_only_unique' => FALSE,
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
      ),
    ),
    'synonyms_commerce_select' => array(
      'label' => t('Synonyms friendly select list'),
      'field types' => array(
        'commerce_product_reference',
      ),
      'settings' => array(),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
      ),
    ),
  );
}