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