You are here

function print_html_strings_settings in Printer, email and PDF versions 6

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

Menu callback for the printer-friendly version text strings settings form

1 string reference to 'print_html_strings_settings'
print_menu in ./print.module
Implementation of hook_menu().

File

./print.admin.inc, line 404
Contains the administrative functions of the PF module.

Code

function print_html_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_html_text'] = array(
    '#type' => 'fieldset',
    '#title' => t('Text strings'),
  );
  $form['print_html_text']['print_html_link_text'] = array(
    '#type' => 'textfield',
    '#title' => t('Link text'),
    '#default_value' => variable_get('print_html_link_text', t('Printer-friendly version')),
    '#description' => t('Text used in the link to the printer-friendly version.'),
  );
  return system_settings_form($form);
}