You are here

function metatag_import_export_csv_download_form in Metatag Import Export CSV 7

Form for exporting Meta tags.

1 string reference to 'metatag_import_export_csv_download_form'
metatag_import_export_csv_menu in ./metatag_import_export_csv.module
Implements hook_menu().

File

./metatag_import_export_csv_download_admin.inc, line 26
Stores the code for export process.

Code

function metatag_import_export_csv_download_form($form, &$form_state) {
  $content_type = metatag_import_export_csv_type_list();
  $form['content_type'] = array(
    '#type' => 'select',
    '#options' => $content_type,
    '#title' => t("Content type"),
    '#validated' => TRUE,
    '#required' => TRUE,
    '#default_value' => $content_type['all'],
    '#description' => t("Select the Content type"),
  );
  $form['delimiter'] = array(
    '#type' => 'textfield',
    '#title' => t('Delimiter'),
    '#description' => t('Enter the delimiter for CSV.'),
    '#default_value' => ',',
    '#maxlength' => 2,
  );
  $form['export'] = array(
    '#type' => 'submit',
    '#value' => t("Export"),
    '#submit' => array(
      'metatag_import_export_csv_download_submit',
    ),
  );
  return $form;
}