cck_select_other.module in CCK Select Other 8
Same filename and directory in other branches
Implements a select list widget that lets a user provide an alternate option.
File
cck_select_other.moduleView 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';
}
Functions
Name | Description |
---|---|
cck_select_other_validation_constraint_alter | Implements hook_validation_constraint_alter(). |