function recipe_mastercook4_import_form in Recipe 7.2
Same name and namespace in other branches
- 6 plugins/recipe_mastercook4.module \recipe_mastercook4_import_form()
- 7 includes/recipe_mastercook4.module \recipe_mastercook4_import_form()
1 string reference to 'recipe_mastercook4_import_form'
File
- modules/
recipe_mastercook4.module, line 231 - Enables importing and exporting of MasterCook4 format recipes.
Code
function recipe_mastercook4_import_form($form_state) {
$form = array();
$form['#attributes'] = array(
'enctype' => "multipart/form-data",
);
$form['recipe_import_file'] = array(
'#type' => 'file',
'#title' => t('MasterCook(1-4 .mxp) File'),
'#default_value' => '',
'#size' => 64,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Import'),
);
return $form;
}