function theme_more_link

Returns HTML for a "more" link, like those used in blocks.

Parameters

$variables: An associative array containing:

  • url: The URL of the main page.
  • title: A descriptive verb for the link, like 'Read more'.

Related topics

5 theme calls to theme_more_link()
aggregator_block_view in modules/aggregator/aggregator.module
Implements hook_block_view().
blog_block_view in modules/blog/blog.module
Implements hook_block_view().
forum_block_view_pre_render in modules/forum/forum.module
Render API callback: Lists nodes based on the element's #query property.
theme_node_recent_block in modules/node/node.module
Returns HTML for a list of recent content.
theme_test_init in modules/simpletest/tests/theme_test.module
Implements hook_init().

File

includes/theme.inc, line 2345

Code

function theme_more_link($variables) {
    return '<div class="more-link">' . l(t('More'), $variables['url'], array(
        'attributes' => array(
            'title' => $variables['title'],
        ),
    )) . '</div>';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.