You are here

function _masked_input_default_definitions in Masked Input 7.2

Same name and namespace in other branches
  1. 8 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()
masked_input_view_configured_definitions in ./masked_input.module
Returns a build to render a preview of available mask definitions as a table.
theme_masked_input_settings_definitions in ./masked_input.theme.inc
Theme callback: Masked Input Definitions settings

File

./masked_input.module, line 286
Provides a form element, Field widget, and simple API for using the Masked Input jQuery plugin.

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',
      ),
    ),
  );
}