You are here

function recipe_field_info in Recipe 7.2

Implements hook_field_info().

File

./recipe.module, line 415
Contains functions for Recipe node CRUD and display.

Code

function recipe_field_info() {
  return array(
    'ingredient_reference' => array(
      'label' => t('Ingredient reference'),
      'description' => t('This field stores a reference to a recipe ingredient.'),
      'default_widget' => 'recipe_ingredient_autocomplete',
      'default_formatter' => 'recipe_ingredient_default',
      'settings' => array(
        'ingredient_name_normalize' => 0,
      ),
      // Integrate with the Entity API.
      'property_type' => 'ingredient_reference',
      'property_callbacks' => array(
        'recipe_metadata_field_ingredient_property_callback',
      ),
    ),
  );
}