You are here

function recipe_field_widget_info in Recipe 7.2

Implements hook_field_widget_info().

File

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

Code

function recipe_field_widget_info() {
  return array(
    'recipe_ingredient_autocomplete' => array(
      'label' => t('Autocomplete ingredient widget'),
      'field types' => array(
        'ingredient_reference',
      ),
      'settings' => array(
        'default_unit' => '',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_DEFAULT,
        'default value' => FIELD_BEHAVIOR_NONE,
      ),
    ),
  );
}