You are here

function feeds_ui_export_form in Feeds 7.2

Same name and namespace in other branches
  1. 6 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
Implements hook_menu().

File

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

Code

function feeds_ui_export_form($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;
}