You are here

function ed_readmore_link_alter in Read More Link (Drupal 6 and earlier) 6.5

Implementation of hook_link_alter().

File

./ed_readmore.module, line 198
Customize the "Read More" link shown in teasers.

Code

function ed_readmore_link_alter(&$links, $node) {

  // Remove the link from the node's $links output if the option is enabled.
  if (variable_get('ed_readmore_remove', TRUE)) {
    unset($links['node_read_more']);
  }
}