function node_convert_templates in Node Convert 6
Same name and namespace in other branches
- 7 node_convert.admin.inc \node_convert_templates()
4 string references to 'node_convert_templates'
- node_convert_add_template_submit in ./
node_convert.module - node_convert_menu in ./
node_convert.module - Implementation of hook_menu().
- node_convert_update_6000 in ./
node_convert.install - node_convert_update_6001 in ./
node_convert.install
File
- ./
node_convert.module, line 463 - The node_convert module converts nodes from one type to another.
Code
function node_convert_templates() {
$output = '';
$rows = array();
$headers = array(
t("Name"),
t("Source type"),
t("Dest type"),
t("Delete"),
);
$result = db_query("SELECT * FROM {node_convert_templates} ORDER BY nctid");
while ($row = db_fetch_object($result)) {
$rows[$row->nctid] = array(
l($row->name, 'admin/build/node_convert_templates/' . $row->nctid),
$row->source_type,
$row->destination_type,
l(t("Delete"), 'admin/build/node_convert_templates/delete/' . $row->nctid),
);
}
$output = theme('table', $headers, $rows);
return $output;
}