function print_pdf_strings_settings in Printer, email and PDF versions 7
Same name and namespace in other branches
- 5.4 print_pdf/print_pdf.admin.inc \print_pdf_strings_settings()
- 6 print_pdf/print_pdf.admin.inc \print_pdf_strings_settings()
- 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 - Implements hook_menu().
File
- print_pdf/
print_pdf.admin.inc, line 315 - 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.'),
);
$form['print_pdf_text']['reset'] = array(
'#type' => 'submit',
'#value' => t('Reset to defaults'),
'#submit' => array(
'print_pdf_strings_settings_delete',
),
);
return system_settings_form($form);
}