You are here

cck_select_other.module in CCK Select Other 8

Implements a select list widget that lets a user provide an alternate option.

File

cck_select_other.module
View source
<?php

/**
 * @file
 * Implements a select list widget that lets a user provide an alternate option.
 */

/**
 * Implements hook_validation_constraint_alter().
 */
function cck_select_other_validation_constraint_alter(array &$definitions) {
  $definition =& $definitions['AllowedValues'];

  // DrupalWTF: Obliterating core/Symfony functionality is the only way to
  // bypass it.
  $definition['class'] = 'Drupal\\cck_select_other\\Validation\\Plugin\\Validation\\Constraint\\SelectOtherAllowedValuesConstraint';
  $definition['provider'] = 'cck_select_other';
}