Commit fee3ab5a authored by jcnventura's avatar jcnventura

Issue #913692: mail submission form page title is now configurable

parent 77f7b204
......@@ -206,6 +206,12 @@ function print_mail_strings_settings() {
'#description' => t('Text used in the link to the send by-email form.'),
);
$form['print_mail_text']['print_mail_text_title'] = array(
'#type' => 'textfield',
'#title' => t('Form page title'),
'#default_value' => variable_get('print_mail_text_title', t('Send page by e-mail')),
'#description' => t("Text used as the page title of the mail submission form. Requires a menu rebuild to apply."),
);
$form['print_mail_text']['print_mail_text_subject'] = array(
'#type' => 'textfield',
'#title' => t('Message Subject'),
......
......@@ -38,6 +38,7 @@ function print_mail_uninstall() {
variable_del('print_mail_teaser_choice');
variable_del('print_mail_link_text');
variable_del('print_mail_link_use_alias');
variable_del('print_mail_text_title');
variable_del('print_mail_text_confirmation');
variable_del('print_mail_text_message');
variable_del('print_mail_text_subject');
......
......@@ -56,7 +56,7 @@ function print_mail_menu() {
$items = array();
$items[PRINTMAIL_PATH] = array(
'title' => 'Send page by e-mail',
'title' => variable_get('print_mail_text_title', 'Send page by e-mail'),
'page callback' => 'drupal_get_form',
'page arguments' => array('print_mail_form'),
'access callback' => '_print_mail_access',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment