You are here

function certificate_criterion_delete_form in Certificate 6

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

File

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

Code

function certificate_criterion_delete_form(&$form_state, $criterion) {
  $form = array();
  $form['check_id'] = array(
    '#value' => $criterion->check_id,
    '#type' => 'hidden',
  );
  $description = t('This criterion looks for %check_type objects, and matches %check_key against "%check_value"', array(
    '%check_type' => $criterion->check_type,
    '%check_key' => $criterion->check_key[0] . '-' . $criterion->check_key[1],
    '%check_value' => $criterion->check_value,
  ));
  $form = confirm_form($form, "Delete criterion for defined <em>{$criterion->name}</em> certificate type?", '', $description, 'Delete', 'Cancel', 'delete-criterion');
  return $form;
}