You are here

function feeds_ui_export_form in Feeds 6

Same name and namespace in other branches
  1. 7.2 feeds_ui/feeds_ui.admin.inc \feeds_ui_export_form()
  2. 7 feeds_ui/feeds_ui.admin.inc \feeds_ui_export_form()

Export a feed configuration.

1 string reference to 'feeds_ui_export_form'
feeds_ui_menu in feeds_ui/feeds_ui.module
Implementation of hook_menu().

File

feeds_ui/feeds_ui.admin.inc, line 260
Contains all page callbacks, forms and theming functions for Feeds administrative pages.

Code

function feeds_ui_export_form(&$form_state, $importer) {
  $code = feeds_export($importer->id);
  $form['export'] = array(
    '#title' => t('Export feed configuration'),
    '#type' => 'textarea',
    '#value' => $code,
    '#rows' => substr_count($code, "\n"),
  );
  return $form;
}