contact_admin_categories

5 contact.module contact_admin_categories()
6 contact.admin.inc contact_admin_categories()

Categories/list tab.

1 string reference to 'contact_admin_categories'

File

modules/contact/contact.module, line 143
Enables the use of personal and site-wide contact forms.

Code

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(check_plain($category->category), check_plain($category->recipients), ($category->selected ? t('Yes') : t('No')), l(t('edit'), 'admin/build/contact/edit/' . $category->cid), l(t('delete'), 'admin/build/contact/delete/' . $category->cid));
  }
  $header = array(t('Category'), t('Recipients'), t('Selected'), array(
      'data' => t('Operations'),
      'colspan' => 2,
    ));

  return theme('table', $header, $rows);
}
Login or register to post comments