function theme_node_import_imports_list in Node import 6
Theme the import task view list.
1 theme call to theme_node_import_imports_list()
- node_import_list_tasks_form in ./
node_import.admin.inc - Lists the available import tasks and shows their progress.
File
- ./
node_import.admin.inc, line 1148
Code
function theme_node_import_imports_list($form) {
$header = array(
t('Name'),
t('Created on'),
t('Created by'),
t('Status'),
array(
'colspan' => 2,
'data' => t('Operations'),
),
);
$rows = array();
foreach (element_children($form) as $child) {
if (is_numeric($child)) {
$rows[] = array(
drupal_render($form[$child]['name']),
drupal_render($form[$child]['created']),
drupal_render($form[$child]['uid']),
drupal_render($form[$child]['status']),
drupal_render($form[$child]['view']),
drupal_render($form[$child]['delete']),
);
unset($form[$child]);
}
}
if (empty($rows)) {
$rows[] = array(
array(
'data' => t('No imports pending. You can <a href="!node_import-add">create a new import</a> using the wizard.', array(
'!node_import-add' => url('admin/content/node_import/add'),
)),
'colspan' => count($header) + 1,
),
);
}
return theme('table', $header, $rows) . drupal_render($form);
}