| Versions | |
|---|---|
| 4.7 – 6 | contact_admin_categories() |
Categories/list tab.
modules/
<?php
function contact_admin_categories() {
$result = db_query('SELECT cid, category, recipients, selected FROM {contact} ORDER BY weight, category');
$rows = array();
while ($category = db_fetch_object($result)) {
$rows[] = array($category->category, $category->recipients, ($category->selected ? t('Yes') : t('No')), l(t('edit'), 'admin/contact/category/edit/' . $category->cid), l(t('delete'), 'admin/contact/category/delete/' . $category->cid));
}
$header = array(t('Category'), t('Recipients'), t('Selected'), array(
'data' => t('Operations'),
'colspan' => 2,
));
return theme('table', $header, $rows);
}
?>