You are here

function recipe_field_widget_settings_form in Recipe 7.2

Implements hook_field_widget_settings_form().

File

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

Code

function recipe_field_widget_settings_form($field, $instance) {
  $settings = $instance['widget']['settings'];
  $form['default_unit'] = array(
    '#type' => 'select',
    '#title' => t('Default unit type for ingredients'),
    '#default_value' => $settings['default_unit'],
    '#options' => recipe_unit_options(),
    '#description' => t('The default unit for new ingredients on the recipe edit screen.'),
  );
  return $form;
}