Customizing emails: remove descriptions

I've turned on notifications for my groups, so an email will be sent whenever someone posts up content. But instead of having the entire description in the email, I'd like to just have a link to the new post. I've identified the code in mod/blog/start.php (in line 266), but am not sure which part to remove, as there's some dots in there that I'm afraid I'll mess up! Can someone help me please?

if ($method == 'email') {

$owner = $entity->getOwnerEntity();

return $owner->name . ' via blog: ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL();

}

  • Bumping this up -- can someone help me shed some light on this please? What does the "." mean?

  • i am sure someone can explain this better, but from what ive done with php, which isnt too much really....

     

    the ".   $bla ."

    in the case your showing are used to enter and escape php parsing.

    well thats from what i understand anyway.

     

    keep a backup of the original,

    but try this to remove the description:

     

    if ($method == 'email') {

    $owner = $entity->getOwnerEntity();

    return $owner->name . ' via blog: ' . $title . "\n\n" . $entity->getURL();

    }