You are here

function certificate_admin_settings_form in Certificate 6

Same name and namespace in other branches
  1. 8.3 certificate.admin.inc \certificate_admin_settings_form()
  2. 6.2 certificate.admin.inc \certificate_admin_settings_form()
  3. 7.3 certificate.admin.inc \certificate_admin_settings_form()
  4. 7.2 certificate.admin.inc \certificate_admin_settings_form()
  5. 3.x certificate.admin.inc \certificate_admin_settings_form()
1 string reference to 'certificate_admin_settings_form'
certificate_menu in ./certificate.module
Implementation of hook_menu().

File

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

Code

function certificate_admin_settings_form() {
  $form = array();
  $form['certifiable_types'] = array(
    '#type' => 'fieldset',
    '#title' => 'Certifiable node types',
  );
  foreach (node_get_types() as $type => $info) {
    $form['certifiable_types']["certificate_certifiable_{$type}"] = array(
      '#title' => $info->name,
      '#type' => 'checkbox',
      '#default_value' => variable_get("certificate_certifiable_{$type}", 0),
    );
  }
  $form['certificate_snapshots'] = array(
    '#title' => 'Use certificate snapshots?',
    '#description' => 'Certificates will only be generated once per node/user.',
    '#type' => 'checkbox',
    '#default_value' => variable_get('certificate_snapshots', 0),
  );
  return system_settings_form($form);
}