1 views_test_plugin_style_test_mapping.inc protected views_test_plugin_style_test_mapping::define_mapping()

Overrides views_plugin_style_mapping::define_mapping().

Overrides views_plugin_style_mapping::define_mapping

File

core/modules/views/tests/views_test/test_plugins/views_test_plugin_style_test_mapping.inc, line 15
Definition of views_test_plugin_style_test_mapping.

Class

views_test_plugin_style_test_mapping
Provides a test mapping style plugin.

Code

protected function define_mapping() {
  return array(
    'title_field' => array(
      '#title' => t('Title field'),
      '#description' => t('Choose the field with the custom title.'),
      '#toggle' => TRUE,
      '#required' => TRUE,
    ),
    'name_field' => array(
      '#title' => t('Name field'),
      '#description' => t('Choose the field with the custom name.'),
    ),
    'numeric_field' => array(
      '#title' => t('Numeric field'),
      '#description' => t('Select one or more numeric fields.'),
      '#multiple' => TRUE,
      '#toggle' => TRUE,
      '#filter' => 'filter_numeric_fields',
      '#required' => TRUE,
    ),
  );
}