recipe_test.module in Recipe 7
Same filename and directory in other branches
A dummy module for testing recipe related hooks.
This is a dummy module that implements recipe related hooks to test API interaction with the Recipe module.
File
tests/recipe_test.moduleView source
<?php
/**
* @file
* A dummy module for testing recipe related hooks.
*
* This is a dummy module that implements recipe related hooks to test API
* interaction with the Recipe module.
*/
/**
* Implements hook_recipe_ing_units_alter().
*
* @param array $units
* The default unit data from the Recipe module.
*/
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(),
);
}
Functions
Name | Description |
---|---|
recipe_test_recipe_ing_units_alter | Implements hook_recipe_ing_units_alter(). |