Update to Drupal 8.2.6. For more information, see https://www.drupal.org/project/drupal/releases/8.2.6

This commit is contained in:
Pantheon Automation 2017-02-02 16:28:38 -08:00 committed by Greg Anderson
parent db56c09587
commit f1e72395cb
588 changed files with 26857 additions and 2777 deletions

View file

@ -69,6 +69,11 @@ function contact_entity_extra_field_info() {
'weight' => -30,
);
}
$fields['contact_message'][$bundle]['form']['preview'] = array(
'label' => t('Preview sender message'),
'description' => t('Preview'),
'weight' => 40,
);
$fields['contact_message'][$bundle]['form']['copy'] = array(
'label' => t('Send copy to sender'),
'description' => t('Option'),

View file

@ -50,6 +50,7 @@ class ContactSitewideTest extends WebTestBase {
'administer users',
'administer account settings',
'administer contact_message fields',
'administer contact_message form display',
]);
$this->drupalLogin($admin_user);
@ -283,6 +284,10 @@ class ContactSitewideTest extends WebTestBase {
$this->fieldUIAddNewField(NULL, $field_name, $field_label, 'text');
$field_name = 'field_' . $field_name;
// Check preview field can be ordered.
$this->drupalGet('admin/structure/contact/manage/' . $contact_form . '/form-display');
$this->assertText(t('Preview'));
// Check that the field is displayed.
$this->drupalGet('contact/' . $contact_form);
$this->assertText($field_label);