You are here

function recipe_test_recipe_ing_units_alter in Recipe 7

Same name and namespace in other branches
  1. 7.2 tests/recipe_test.module \recipe_test_recipe_ing_units_alter()

Implements hook_recipe_ing_units_alter().

Parameters

array $units: The default unit data from the Recipe module.

File

tests/recipe_test.module, line 17
A dummy module for testing recipe related hooks.

Code

function recipe_test_recipe_ing_units_alter(&$units) {
  $units['test_unit'] = array(
    'name' => t('Test unit'),
    'plural' => t('Test units'),
    'abbreviation' => '',
    'system' => 'common',
    'type' => t('indefinite'),
    'aliases' => array(),
  );
}