You are here

function _telephone_validation_get_default_settings in Telephone Validation 7

Get default values for telephone field.

Return value

array Returns array of default field settings.

2 calls to _telephone_validation_get_default_settings()
_telephone_validation in ./telephone_validation.module
Validation callback.
_telephone_validation_get_instance_settings in ./telephone_validation.module
Returns settings array for given instance.

File

./telephone_validation.module, line 142
Validate phone number.

Code

function _telephone_validation_get_default_settings() {
  return array(
    'valid_format' => \libphonenumber\PhoneNumberFormat::E164,
    'valid_countries' => array(),
    'store_format' => \libphonenumber\PhoneNumberFormat::E164,
  );
}