function uc_importer_export_form in Ubercart 5
Choose the nodes to export.
See also
uc_importer_export_form_submit
1 string reference to 'uc_importer_export_form'
- uc_importer_export_page in uc_importer/
uc_importer.module - Wrapper function to generate a page to hold the export form.
File
- uc_importer/
uc_importer.module, line 228 - XML product importer and exporter.
Code
function uc_importer_export_form() {
$form = array();
$products = array();
$result = db_query(db_rewrite_sql("SELECT n.nid, p.model FROM {uc_products} AS p JOIN {node} AS n"));
while ($product = db_fetch_object($result)) {
$products[$product->nid] = $product->model;
}
$form['nids'] = array(
'#type' => 'select',
'#multiple' => true,
'#title' => t('Products'),
'#options' => $products,
'#description' => t('Hold "Ctrl" to select multiple items.'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Export'),
);
return $form;
}