You are here

function print_main_strings_settings in Printer, email and PDF versions 6

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

Menu callback for the common print module text strings settings form

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

File

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

Code

function print_main_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_main_text'] = array(
    '#type' => 'fieldset',
    '#title' => t('Text strings'),
  );
  $form['print_main_text']['print_text_published'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('print_text_published', t('Published on %site_name')),
  );
  $form['print_main_text']['print_text_source_url'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('print_text_source_url', t('Source URL')),
  );
  $form['print_main_text']['print_text_retrieved'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('print_text_retrieved', t('retrieved on %date')),
  );
  $form['print_main_text']['print_text_links'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('print_text_links', t('Links')),
  );
  return system_settings_form($form);
}