function views_plugin_style_mapping::define_mapping

Builds the list of field mappings.

Return value

array An associative array, keyed by the field name, containing the following key-value pairs:

  • #title: The human-readable label for this field.
  • #default_value: The default value for this field. If not provided, an empty string will be used.
  • #description: A description of this field.
  • #required: Whether this field is required.
  • #filter: (optional) A method on the plugin to filter field options.
  • #toggle: (optional) If this select should be toggled by a checkbox.
3 calls to views_plugin_style_mapping::define_mapping()
views_plugin_style_mapping::options_form in plugins/views_plugin_style_mapping.inc
Provide a form to edit options for this plugin.
views_plugin_style_mapping::option_definition in plugins/views_plugin_style_mapping.inc
Information about options for all kinds of purposes will be held here.
views_plugin_style_mapping::render in plugins/views_plugin_style_mapping.inc
Render the display in this style.
1 method overrides views_plugin_style_mapping::define_mapping()
views_test_plugin_style_test_mapping::define_mapping in tests/test_plugins/views_test_plugin_style_test_mapping.inc
Builds the list of field mappings.

File

plugins/views_plugin_style_mapping.inc, line 27

Class

views_plugin_style_mapping
Allows fields to be mapped to specific use cases.

Code

protected abstract function define_mapping();