function _masked_input_default_definitions in Masked Input 8
Same name and namespace in other branches
- 7.2 masked_input.module \_masked_input_default_definitions()
Default mask definitions provided by the plugin. Prepared specifically for 'rows' variable of theme_table().
2 calls to _masked_input_default_definitions()
- MaskedinputFieldWidgetDefault::formElement in src/
Plugin/ Field/ FieldWidget/ MaskedinputFieldWidgetDefault.php - Returns the form for a single field widget.
- masked_input_install in ./
masked_input.module - Implements hook_install().
File
- ./
masked_input.module, line 62 - Contains masked_input.module.
Code
function _masked_input_default_definitions() {
return array(
array(
array(
'data' => 'a',
),
array(
'data' => '[a-zA-Z]',
),
array(
'data' => 'Represents an alpha character',
),
),
array(
array(
'data' => '9',
),
array(
'data' => '[0-9]',
),
array(
'data' => 'Represents a numeric character',
),
),
array(
array(
'data' => '*',
),
array(
'data' => '[A-Za-z0-9]',
),
array(
'data' => 'Represents an alpha character',
),
),
);
}