function recipe_field_extra_fields in Recipe 7.2
Same name and namespace in other branches
- 7 recipe.module \recipe_field_extra_fields()
 
Implements hook_field_extra_fields().
This adds these fields to the manage fields UI for changing weights.
File
- ./
recipe.module, line 1308  - Contains functions for Recipe node CRUD and display.
 
Code
function recipe_field_extra_fields() {
  $extra = array();
  $extra['node']['recipe'] = array(
    'form' => array(
      'recipe_yield' => array(
        'label' => t('Yield'),
        'description' => t('Recipe module element'),
        'weight' => -3,
      ),
      'recipe_yield_unit' => array(
        'label' => t('Yield units'),
        'description' => t('Recipe module element'),
        'weight' => -3,
      ),
    ),
    'display' => array(
      'recipe_summary_box' => array(
        'label' => t('Recipe summary box'),
        'description' => t('Recipe module element'),
        'weight' => -7,
      ),
    ),
  );
  return $extra;
}