You are here

function print_pdf_strings_settings in Printer, email and PDF versions 6

Same name and namespace in other branches
  1. 5.4 print_pdf/print_pdf.admin.inc \print_pdf_strings_settings()
  2. 7 print_pdf/print_pdf.admin.inc \print_pdf_strings_settings()
  3. 5.x print_pdf/print_pdf.admin.inc \print_pdf_strings_settings()

Menu callback for the PDF version module text strings settings form.

1 string reference to 'print_pdf_strings_settings'
print_pdf_menu in print_pdf/print_pdf.module
Implementation of hook_menu().

File

print_pdf/print_pdf.admin.inc, line 320
Contains the administrative functions of the PDF version module.

Code

function print_pdf_strings_settings() {
  drupal_set_message(t("Saving these strings will disable their translation via Drupal's language system. Use the reset button to return them to the original state."), 'warning');
  $form['print_pdf_text'] = array(
    '#type' => 'fieldset',
    '#title' => t('Text strings'),
  );
  $form['print_pdf_text']['print_pdf_link_text'] = array(
    '#type' => 'textfield',
    '#title' => t('Link text'),
    '#default_value' => variable_get('print_pdf_link_text', t('PDF version')),
    '#description' => t('Text used in the link to the PDF version.'),
  );
  return system_settings_form($form);
}