function theme_more_link

Same name and namespace in other branches
  1. 6.x drupal-6.x/includes/theme.inc \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

3 theme calls to theme_more_link()
aggregator_block_view in drupal-7.x/modules/aggregator/aggregator.module
Implements hook_block_view().
theme_node_recent_block in drupal-7.x/modules/node/node.module
Returns HTML for a list of recent content.
theme_test_init in drupal-7.x/modules/simpletest/tests/theme_test.module
Implements hook_init().

Archivo

drupal-7.x/includes/theme.inc, line 2213
The theme system, which controls the output of Drupal.

Código

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