@@ -22,7 +22,7 @@ function contact_help($route_name, RouteMatchInterface $route_match) {
$output.='<dt>'.t('User contact forms').'</dt>';
$output.='<dd>'.t('Site users can be contacted with a user contact form that keeps their email address private. Users may enable or disable their personal contact forms by editing their <em>My account</em> page. If enabled, a <em>Contact</em> tab leads to a personal contact form displayed on their user profile. Site administrators are still able to use the contact form, even if has been disabled. The <em>Contact</em> tab is not shown when you view your own profile.').'</dd>';
$output.='<dd>'.t('The <a href="@contact">Contact page</a> provides a simple form for users with the <em>Use the site-wide contact form</em> permission to send comments, feedback, or other requests. You can create categories for directing the contact form messages to a set of defined recipients. Common categories for a business site, for example, might include "Website feedback" (messages are forwarded to website administrators) and "Product information" (messages are forwarded to members of the sales department). Email addresses defined within a category are not displayed publicly.',array('@contact'=>url('contact'))).'</p>';
$output.='<dd>'.t('The <a href="@contact">Contact page</a> provides a simple form for users with the <em>Use the site-wide contact form</em> permission to send comments, feedback, or other requests. You can create forms for directing the contact messages to a set of defined recipients. Common forms for a business site, for example, might include "Website feedback" (messages are forwarded to website administrators) and "Product information" (messages are forwarded to members of the sales department). Email addresses defined within a form are not displayed publicly.',array('@contact'=>url('contact'))).'</p>';
$output.='<dt>'.t('Navigation').'</dt>';
$output.='<dd>'.t('When the site-wide contact form is enabled, a link in the <em>Footer</em> menu is created, which you can modify on the <a href="@menu">Menus administration page</a>.',array('@menu'=>url('admin/structure/menu'))).'</dd>';
$output.='<dt>'.t('Customization').'</dt>';
...
...
@@ -30,8 +30,8 @@ function contact_help($route_name, RouteMatchInterface $route_match) {
$output.='</dl>';
return$output;
case'contact.category_list':
$output='<p>'.t('Add one or more categories on this page to set up your site-wide <a href="@form">contact form</a>.',array('@form'=>url('contact'))).'</p>';
case'contact.form_list':
$output='<p>'.t('Add one or more forms on this page to set up your site-wide <a href="@form">contact form</a>.',array('@form'=>url('contact'))).'</p>';
$output.='<p>'.t('A <em>Contact</em> menu item is added to the <em>Footer</em> menu, which you can modify on the <a href="@menu-settings">Menus administration page</a>.',array('@menu-settings'=>url('admin/structure/menu'))).'</p>';
$output.='<p>'.t('If you would like additional text to appear on the site-wide contact page, use a block. You can create and edit blocks on the <a href="@blocks">Blocks administration page</a>.',array('@blocks'=>url('admin/structure/block'))).'</p>';
return$output;
...
...
@@ -113,7 +113,7 @@ function contact_mail($key, &$message, $params) {
'#description'=>$this->t("Example: 'webmaster@example.com' or 'sales@example.com,support@example.com' . To specify multiple recipients, separate each email address with a comma."),
'#required'=>TRUE,
);
$form['reply']=array(
'#type'=>'textarea',
'#title'=>$this->t('Auto-reply'),
'#default_value'=>$category->reply,
'#default_value'=>$contact_form->reply,
'#description'=>$this->t('Optional auto-reply. Leave empty if you do not want to send the user an auto-reply message.'),
);
$form['weight']=array(
'#type'=>'weight',
'#title'=>$this->t('Weight'),
'#default_value'=>$category->weight,
'#description'=>$this->t('When listing categories, those with lighter (smaller) weights get listed before categories with heavier (larger) weights. Categories with equal weights are sorted alphabetically.'),
'#default_value'=>$contact_form->weight,
'#description'=>$this->t('When listing forms, those with lighter (smaller) weights get listed before forms with heavier (larger) weights. Forms with equal weights are sorted alphabetically.'),
);
$form['selected']=array(
'#type'=>'checkbox',
'#title'=>$this->t('Make this the default category.'),