You are here

function _read_more_link_title in Read More Link 7

The read-more:link-title token will be included in the link as the title attribute.

2 calls to _read_more_link_title()
read_more_tokens in ./read_more.tokens.inc
Implements hook_tokens().
_read_more_link_options in ./read_more.module
Add link options as prescribed in the Read More link config page.

File

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

Code

function _read_more_link_title($node) {

  // We don't need to sanitize the link title attribute because it's passed to l(), which runs strip_tags() for us.
  $link_title = variable_get('read_more_title', READ_MORE_TITLE_DEFAULT);
  $link_title = token_replace($link_title, array(
    'node' => $node,
  ));
  return $link_title;
}