if( $main && $node->readmore )
{
$content = "$node->teaser
" .
l( t("read more"), "$node_url", array( "title" => t("Read the rest of this posting."), "class" => "read-more") ) .
"
";
// remove "read more" link from standard node links
$my_links = $node->links;
if( $my_links )
{
// this would be much easier if the array returned by module_links() was indexed
// see let _link() return structured link info
$rm = preg_quote( t("read more") );
$my_links = preg_grep( "/$rm/", $my_links, PREG_GREP_INVERT );