select_or_other.module in Select (or other) 8
Same filename and directory in other branches
Contains some hook implementations for the select or other module
File
select_or_other.moduleView source
<?php
/**
* @file
* Contains some hook implementations for the select or other module
*/
/**
* Implements hook_validation_constraint_alter().
*
* @param &$definitions
* An associative array of definitions and classes that use them.
*/
function select_or_other_validation_constraint_alter(&$definitions) {
// Work around core issue #2643308 by overriding the AllowedValuesConstraint.
$definition =& $definitions['AllowedValues'];
$definition['class'] = 'Drupal\\select_or_other\\Plugin\\Validation\\AllowedValuesConstraint';
$definition['provider'] = 'select_or_other';
}
Functions
Name | Description |
---|---|
select_or_other_validation_constraint_alter | Implements hook_validation_constraint_alter(). |