~davidstrauss/pressflow/variable-write-through

« back to all changes in this revision

Viewing changes to modules/contact/contact.admin.inc

  • Committer: David Strauss
  • Date: 2009-12-17 00:30:08 UTC
  • mfrom: (1.1.9 6-stable)
  • Revision ID: david@fourkitchens.com-20091217003008-dhhtai679ecfigz5
MergeĀ DrupalĀ 6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: contact.admin.inc,v 1.3 2007/11/09 07:55:13 dries Exp $
 
2
// $Id: contact.admin.inc,v 1.3.2.1 2009/12/16 20:47:10 goba Exp $
3
3
 
4
4
/**
5
5
 * @file
13
13
  $result = db_query('SELECT cid, category, recipients, selected FROM {contact} ORDER BY weight, category');
14
14
  $rows = array();
15
15
  while ($category = db_fetch_object($result)) {
16
 
    $rows[] = array($category->category, $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));
 
16
    $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));
17
17
  }
18
18
  $header = array(t('Category'), t('Recipients'), t('Selected'), array('data' => t('Operations'), 'colspan' => 2));
19
19