You are here

function certificate_sets_page in Certificate 6

Page to show certificate types.

1 string reference to 'certificate_sets_page'
certificate_menu in ./certificate.module
Implementation of hook_menu().

File

./certificate.admin.inc, line 104
Administrative pages for the module.

Code

function certificate_sets_page(&$certificate_type = array()) {
  drupal_set_title('Criteria');
  $sql = 'select ct.type_id, ct.name, node.title from {certificate_types} ct
  left join {node} node on node.nid = template_id';
  $query = db_query($sql);
  while ($row = db_fetch_object($query)) {
    $cells = (array) $row;
    $cells[] = _certificate_certificate_type_links($cells);
    $rows[] = $cells;
  }
  return $out . theme('table', array(
    'Type ID',
    'Type Name',
    'Template Name',
    'Operations',
  ), $rows);
}