Skip to content

Instantly share code, notes, and snippets.

@timonweb
Created May 30, 2012 17:00
Show Gist options
  • Select an option

  • Save timonweb/2837629 to your computer and use it in GitHub Desktop.

Select an option

Save timonweb/2837629 to your computer and use it in GitHub Desktop.
Override Read more link
/**
* Override Read more link
* @param unknown_type $vars
*/
function themename_preprocess_node(&$vars){
$vars['node']->links['node_read_more']['title'] = "read more";
$node = $vars['node'];
# Following code is from theme.inc's template_preprocess_node()
$vars['links'] = !empty($node->links) ? theme('links', $node->links, array('class' => 'links inline')) : '';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment