function theme_bulk_export_export_form in Chaos Tool Suite (ctools) 6
Display the bulk export form.
File
- bulk_export/
bulk_export.module, line 176 - Perform bulk exports.
Code
function theme_bulk_export_export_form($form) {
$files = module_rebuild_cache();
$exportables = $form['#exportables'];
$export_tables = $form['#export_tables'];
$output = '';
foreach ($export_tables as $table => $module) {
$header = array(
theme('table_select_header_cell'),
"{$files[$module]->info['name']}: {$table}",
);
$rows = array();
foreach ($exportables[$table] as $name => $title) {
// $title = $form['tables'][$table][$name]['#title'];
unset($form['tables'][$table][$name]['#title']);
$rows[] = array(
drupal_render($form['tables'][$table][$name]),
$title,
);
}
if ($rows) {
$output .= '<div class="export-container">';
$output .= theme('table', $header, $rows);
$output .= "</div>\n";
}
}
if (empty($output)) {
$output = t('There are no objects in your system that may be exported at this time.');
}
drupal_add_css(drupal_get_path('module', 'bulk_export') . '/bulk_export.css');
$output .= drupal_render($form);
return $output;
}