You are here

function _certificate_certificate_type_links in Certificate 6

Build the operations for a certificate type.

1 call to _certificate_certificate_type_links()
certificate_sets_page in ./certificate.admin.inc
Page to show certificate types.

File

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

Code

function _certificate_certificate_type_links($type) {
  $path = drupal_get_path('module', 'certificate') . '/images/';
  $links['edit'] = array(
    'title' => t('Edit set'),
    'href' => 'admin/settings/certificate/sets/' . $type['type_id'] . '/edit',
    'html' => TRUE,
    'query' => drupal_get_destination(),
  );
  $links['criteria'] = array(
    'title' => t('Edit criteria'),
    'href' => 'admin/settings/certificate/sets/' . $type['type_id'] . '/criteria',
    'html' => TRUE,
  );
  $links['delete'] = array(
    'title' => t('Delete'),
    'href' => 'admin/settings/certificate/sets/' . $type['type_id'] . '/delete',
    'html' => TRUE,
    'query' => drupal_get_destination(),
  );
  return theme('links', $links);
}