commit 2ae07361498753a387cc739c3eef03d736eeb4f5 Author: Igor Flista Date: Wed Jul 4 21:46:39 2012 +0300 183678-new_changes diff --git a/core/modules/contact/contact.module b/core/modules/contact/contact.module index a5494f1..0f58037 100644 --- a/core/modules/contact/contact.module +++ b/core/modules/contact/contact.module @@ -272,7 +272,7 @@ function contact_form_user_admin_settings_alter(&$form, &$form_state) { * * @param $contact * Array describing the contact category. - * + * * @return * Returns page title. * diff --git a/core/modules/contact/contact.pages.inc b/core/modules/contact/contact.pages.inc index 765109c..191ea23 100644 --- a/core/modules/contact/contact.pages.inc +++ b/core/modules/contact/contact.pages.inc @@ -14,8 +14,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; * @param $category * (optional) An associative array containing the current data for * the category: - * - cid: The category ID - * - category: The name of the category + * - cid: The category ID. + * - category: The name of the category. * * @see contact_menu() * @see contact_site_form_validate() diff --git a/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php b/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php index db939f3..071ebc2 100644 --- a/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php +++ b/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php @@ -160,7 +160,7 @@ class ContactSitewideTest extends WebTestBase { $this->assertResponse(403, t('Access denied to anonymous user after reaching message treshold.')); $this->assertRaw(t('You cannot send more than %number messages in @interval. Try again later.', array('%number' => variable_get('contact_threshold_limit', 3), '@interval' => format_interval(600))), t('Message threshold reached.')); - // Test per category contact form page. + // Test the per-category contact form page. $this->drupalLogin($admin_user); $categories = $this->getCategories(); $category = $this->randomName(16); @@ -168,7 +168,7 @@ class ContactSitewideTest extends WebTestBase { $reply = $this->randomName(30); $category_id = $this->updateCategory($categories, $category, $recipients_str, $reply, FALSE); $this->drupalGet('contact/'. $category_id); - // Test infromation. + // Confirm that the category name is in the page title. $this->assertRaw('

Contact '. $category . '

', 'Category name is present as the page title'); // Test form. $this->assertNoText(t('Category'), 'The category select is hidden in the per category contact form page.');