You are here

recipe_test.module in Recipe 7

Same filename and directory in other branches
  1. 7.2 tests/recipe_test.module

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.module
View 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

Namesort descending Description
recipe_test_recipe_ing_units_alter Implements hook_recipe_ing_units_alter().