function recipe_recipeML_import_form in Recipe 6
Same name and namespace in other branches
- 7.2 modules/recipe_recipeML.module \recipe_recipeML_import_form()
- 7 includes/recipe_recipeML.module \recipe_recipeML_import_form()
1 string reference to 'recipe_recipeML_import_form'
File
- plugins/
recipe_recipeML.module, line 139 - recipe_recipeML.module - 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' => $object['foo'],
'#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;
}