You are here

function recipe_more_ingredients_submit in Recipe 7

Same name and namespace in other branches
  1. 6 recipe.module \recipe_more_ingredients_submit()

Form submission handler for the 'More ingredients' button.

1 string reference to 'recipe_more_ingredients_submit'
recipe_form in ./recipe.module
Implements hook_form().

File

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

Code

function recipe_more_ingredients_submit($form, &$form_state) {
  $form_state['rebuild'] = TRUE;

  // If they clicked the more ingredients button, set a form_state signal.
  if ($form_state['values']['recipe_ingredients']['recipe_more_ingredients']) {
    $form_state['add_ingredients'] = 1;
  }
}