You are here

function _read_more_wrapper in Read More Link 7

The 'read-more' token will probably include the node:read-more:link token.

1 call to _read_more_wrapper()
theme_read_more_link in ./read_more.module
Theme function that wraps the rendered link.

File

./read_more.module, line 200
Customize the "Read More" link shown in teasers.

Code

function _read_more_wrapper($node, $view_mode) {
  $link_wrapper = variable_get('read_more_text', READ_MORE_TEXT_DEFAULT);

  // Filter link text for cross-site scripting (XSS).
  // We sanitize the link text here because l() will be told to allow HTML.
  $link_wrapper = _read_more_filter_xss($link_wrapper);
  return token_replace($link_wrapper, array(
    'node' => $node,
  ), array(
    'read_more_view_mode' => $view_mode,
  ));
}