commit b849d3d8df144ed1053d107be89660e60075dc26 Author: Joel Pittet Date: Wed Nov 27 13:29:07 2013 -0800 no div wrapper diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/RenderElementTypesTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/RenderElementTypesTest.php index 4fac932..b051447 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/RenderElementTypesTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/RenderElementTypesTest.php @@ -118,9 +118,18 @@ function testHtmlTag() { */ function testMoreLink() { $elements = array( - // Test more_link anchor tag generation. + // Test more_link anchor tag generation without class attributes to test default. array( - 'name' => "#type 'more_link' anchor tag generation", + 'name' => "#type 'more_link' anchor tag generation without extra classes", + 'value' => array( + '#type' => 'more_link', + '#href' => 'admin/content', + ), + 'expected' => 'More', + ), + // Test more_link anchor tag generation without class attributes to test additional classes. + array( + 'name' => "#type 'more_link' anchor tag generation with extra classes", 'value' => array( '#type' => 'more_link', '#href' => 'admin/content', @@ -129,7 +138,7 @@ function testMoreLink() { 'class' => array('drupal', 'test'), ), ), - 'expected' => '', + 'expected' => 'More', ), ); $this->assertElements($elements); diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 426ffbd..bc1ea9c 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -539,11 +539,7 @@ function system_element_info() { // A "more" link, like those used in blocks. $types['more_link'] = $types['link'] + array( '#title' => t('More'), - '#theme_wrappers' => array( - 'container' => array( - '#attributes' => array('class' => 'more-link'), - ), - ), + '#attributes' => array('class' => 'more-link'), ); $types['fieldset'] = array( '#value' => NULL,