You are here

function recipe_recipeML_import_form in Recipe 7.2

Same name and namespace in other branches
  1. 6 plugins/recipe_recipeML.module \recipe_recipeML_import_form()
  2. 7 includes/recipe_recipeML.module \recipe_recipeML_import_form()
1 string reference to 'recipe_recipeML_import_form'
recipe_recipeML_import_multi in modules/recipe_recipeML.module

File

modules/recipe_recipeML.module, line 211
Enables importing and exporting of recipeML format recipes.

Code

function recipe_recipeML_import_form($form_state) {
  $form = array();
  $form['#attributes'] = array(
    'enctype' => "multipart/form-data",
  );
  $form['recipe_import_file'] = array(
    '#type' => 'file',
    '#title' => t('RecipeML File'),
    '#default_value' => '',
    '#size' => 34,
    '#description' => t("A Recipe in RecipeML format, see http://www.formatdata.com/recipeml.  Note: This will add taxonomy terms to the lightest weight recipe taxonomy."),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  );
  return $form;
}