I am trying to alter the title of my nodes to prevent URLS appearing in any title. This is the code I am using.
function mytemplate_preprocess_node(&$variables) { $node = $variables['node ']; $variables['title'] = cleaner(check_plain($node->title)); }
cleaner()
removes URLs from nodes. The above works perfectly on teasers, but not on full view or when the title is displayed in a list with other articles inside a block.
How can I make sure that the URL disappear whenever the concerned node’s title is listed?