function node_convert_template_info in Node Convert 6
Same name and namespace in other branches
- 7 node_convert.admin.inc \node_convert_template_info()
1 string reference to 'node_convert_template_info'
- node_convert_menu in ./
node_convert.module - Implementation of hook_menu().
File
- ./
node_convert.module, line 476 - The node_convert module converts nodes from one type to another.
Code
function node_convert_template_info($template_id) {
$output = '';
$rows = array();
$headers = array(
t("Property"),
t("Value"),
);
$row = node_convert_load_template($template_id);
$rows[] = array(
t("Template id"),
$row['nctid'],
);
$rows[] = array(
t("Name"),
$row['name'],
);
$rows[] = array(
t("Source type"),
$row['source_type'],
);
$rows[] = array(
t("Destination type"),
$row['destination_type'],
);
$data = $row['data'];
if ($data['no_fields'] == FALSE) {
$source_fields_string = implode(', ', $data['fields']['source']);
$dest_fields_string = implode(', ', $data['fields']['destination']);
$rows[] = array(
t("Source fields"),
$source_fields_string,
);
$rows[] = array(
t("Destination fields"),
$dest_fields_string,
);
}
if (!empty($data['hook_options'])) {
$rows[] = array(
t("Hook options"),
print_r($data['hook_options'], TRUE),
);
}
$output .= theme('table', $headers, $rows);
return $output;
}