You are here

function recipe_mastercook4_import_form in Recipe 7

Same name and namespace in other branches
  1. 6 plugins/recipe_mastercook4.module \recipe_mastercook4_import_form()
  2. 7.2 modules/recipe_mastercook4.module \recipe_mastercook4_import_form()
1 string reference to 'recipe_mastercook4_import_form'
recipe_mastercook4_import_multi in includes/recipe_mastercook4.module

File

includes/recipe_mastercook4.module, line 197
recipe_mastercook4.module - 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;
}