You are here

function exif_custom_new_map_form in EXIF Custom 7

Initial form for creating a new mapping using an example file.

1 string reference to 'exif_custom_new_map_form'
exif_custom_menu in ./exif_custom.module
Implements hook_menu().

File

./exif_custom.add.inc, line 11
Form for creating a new mapping.

Code

function exif_custom_new_map_form() {
  $form['name'] = array(
    '#title' => t('Mapping name'),
    '#type' => 'textfield',
    '#description' => t("The name for this mapping (e.g. Jeremy's camera)."),
    '#required' => TRUE,
  );
  $form['example_file'] = array(
    '#title' => t('Example file'),
    '#type' => 'file',
    '#description' => t('A file with the EXIF fields you would like to map. Required.'),
    '#required' => FALSE,
  );
  $form['actions']['submit'] = array(
    '#value' => 'Save',
    '#type' => 'submit',
  );
  return $form;
}