You are here

function recipe_mastercook4_import_form in Recipe 6

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

File

plugins/recipe_mastercook4.module, line 166
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' => $object['foo'],
    '#size' => 64,
    '#description' => t("Note: This will add taxonomy terms to the lightest weight recipe taxonomy."),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  );
  return $form;
}