/** * Get a wall post message suitable for notifications and status updates * * @param \ElggObject $object Wall or wire post * @param bool $include_address Include attached URL address in the message body * @return string */ function format_wall_message($object, $include_address = false) { if ($object instanceof Post) { return $object->formatMessage($include_address); } return $object->description; }