diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index 9747e61..ed2f05a 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -81,12 +81,6 @@ function forum_help($route_name, RouteMatchInterface $route_match) { */ function forum_theme() { return array( - 'views_more__forum_topic_lists' => array( - 'base hook' => 'views_more', - 'template' => 'views-more--forum-topic-lists', - 'variables' => array('more_url' => NULL, 'link_text' => 'more', 'view' => NULL, 'link_title' => NULL - ), - ), 'forums' => array( 'template' => 'forums', 'variables' => array('forums' => array(), 'topics' => array(), 'topics_pager' => array(), 'parents' => NULL, 'term' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL, 'header' => array()), diff --git a/core/modules/forum/forum.views_execution.inc b/core/modules/forum/forum.views_execution.inc index d91bac7..dbf0ab0 100644 --- a/core/modules/forum/forum.views_execution.inc +++ b/core/modules/forum/forum.views_execution.inc @@ -8,11 +8,11 @@ /** * Implements hook_preprocess_HOOK(). */ -function forum_preprocess_views_view(&$variables) { +function forum_preprocess_views_more(&$variables) { /** @var \Drupal\views\ViewExecutable $view */ $view = $variables['view']; if ($view->storage->id() == 'forum_topic_lists') { // Append some descriptive text to provide context to the 'Read More' link. - $variables['more']['#link_title'] = $view->getTitle(); + $variables['attributes']['title'] = $view->getTitle(); } } diff --git a/core/modules/views/views.module b/core/modules/views/views.module index b1ea551..944a910 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -269,13 +269,6 @@ function views_theme_suggestions_node_alter(array &$suggestions, array $variable } /** - * Implements MODULE_preprocess_HOOK() for views-more templates. - */ -function views_preprocess_views_more(&$variables) { - $variables['attributes'] = new Attribute(); -} - -/** * A theme preprocess function to automatically allow view-based node * templates if called from a view. */