Revision: 41777
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 23, 2011 07:22 by discipolo
Initial Code
function YOURTHEME_widont($str = '') { $str = rtrim($str); $space = strrpos($str, ' '); if ($space !== false) { $str = substr($str, 0, $space).' '.substr($str, $space + 1); } return $str; }
Initial URL
http://club-sandru.ro/blog/solving_the_widow_problem_on_your_drupal_website.html
Initial Description
Anywhere, the variable $title is printed in a template file, it can be wrapped in this function: YOURTHEME_widont($title)
Initial Title
Solving the widow problem on your Drupal website Titles
Initial Tags
Initial Language
PHP