function masked_input_get_configured_definitions in Masked Input 7.2
Same name and namespace in other branches
- 8 masked_input.module \masked_input_get_configured_definitions()
Retrieve configured definitions prepared for the #definitions property of the masked_input element type.
1 call to masked_input_get_configured_definitions()
- masked_input_process_callback in ./
masked_input.module - Process callback: 'masked_input' element type.
File
- ./
masked_input.module, line 242 - Provides a form element, Field widget, and simple API for using the Masked Input jQuery plugin.
Code
function masked_input_get_configured_definitions() {
$definitions = array();
foreach (variable_get('masked_input_definitions', array()) as $definition) {
$definitions[$definition['character']] = $definition['regex'];
}
return $definitions;
}