You are here

function mvf_feeds_unit_notation_form_callback in Measured Value Field 7

Form callback for specifying form of unit notation to MVF mapper.

1 string reference to 'mvf_feeds_unit_notation_form_callback'
mvf_feeds_processor_targets in ./mvf.feeds.inc
Implements hook_feeds_processor_targets().

File

./mvf.feeds.inc, line 163
Integration with Feeds of MVF module.

Code

function mvf_feeds_unit_notation_form_callback(array $mapping, $target, array $form, array $form_state) {
  return array(
    'unit_notation' => array(
      '#type' => 'select',
      '#title' => t('Unit notation'),
      '#description' => t('Specify, how units are denoted in your Feeds source.'),
      '#options' => mvf_feeds_mapper_unit_notation_options(),
      '#required' => TRUE,
      '#default_value' => isset($mapping['unit_notation']) ? $mapping['unit_notation'] : NULL,
    ),
  );
}