You are here

function quantity_farm_api_meta_alter in farmOS 2.x

Implements hook_farm_api_meta_alter().

File

modules/core/quantity/quantity.module, line 120
Quantity module.

Code

function quantity_farm_api_meta_alter(&$data) {

  // Add the quantity system of measurement.
  $data['system_of_measurement'] = \Drupal::config('quantity.settings')
    ->get('system_of_measurement');
}