You are here

function certificate_form_certificate_node_form_alter in Certificate 6.2

Same name and namespace in other branches
  1. 6 certificate.module \certificate_form_certificate_node_form_alter()
  2. 7.2 certificate.module \certificate_form_certificate_node_form_alter()
  3. 3.x certificate.module \certificate_form_certificate_node_form_alter()

File

./certificate.module, line 310
Certificate module.

Code

function certificate_form_certificate_node_form_alter(&$form, &$form_state) {
  if (module_exists('token')) {

    // Embed token help.
    $form['certificate_tokens'] = array(
      '#title' => 'Certificate tokens',
      '#type' => 'fieldset',
      '#collapsible' => TRUE,
      '#collapsed' => FALSE,
      '#value' => theme('token_tree', array(
        'global',
        'node',
        'user',
        'certificate',
      ), FALSE),
    );
  }

  // No preview - we want users to see it in PDF for accuracy.
  $form['buttons']['preview'] = NULL;
}