You are here

function microdata_get_default_field_mapping in Microdata 7

Submit handler for the "get-default-mappings" button.

It just increments the max counter and causes a rebuild.

1 string reference to 'microdata_get_default_field_mapping'
microdata_form_field_ui_field_edit_form_alter in includes/microdata.form_alter.inc
Implements hook_form_FORM_ID_alter().

File

includes/microdata.form_alter.inc, line 308
Provides inline structured data using Microdata format.

Code

function microdata_get_default_field_mapping($form, &$form_state) {
  $selected = $form_state['values']['suggested_mapping'];
  $form_state['field_mapping'] = $form_state['suggested_mappings'][$selected];
  $form_state['rebuild'] = TRUE;
}