You are here

function recipe_custom_yield_form in Recipe 5

1 string reference to 'recipe_custom_yield_form'
theme_node_recipe in ./recipe.module
A custom theme function.

File

./recipe.module, line 1459
recipe.module - share recipes for drupal 5.x

Code

function recipe_custom_yield_form($node) {
  $form['custom_yield_container'] = array(
    '#type' => 'fieldset',
    '#collapsible' => FALSE,
    '#collapsed' => FALSE,
  );
  $form['custom_yield_container']['custom_yield'] = array(
    '#type' => 'textfield',
    '#default_value' => $node->yield,
    '#size' => 2,
    '#maxlength' => 4,
  );
  $form['custom_yield_container']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Change'),
  );
  $form['custom_yield_container']['halve'] = array(
    '#type' => 'submit',
    '#value' => t('Halve'),
  );
  $form['custom_yield_container']['double'] = array(
    '#type' => 'submit',
    '#value' => t('Double'),
  );
  return $form;
}