Exemplo n.º 1
0
 /**
  * Factory method for getting a loaded LingotekComment object.
  *
  * @param int $comment_id
  *   A Drupal comment ID.
  *
  * @return mixed
  *   A loaded LingotekComment object if found, FALSE if the comment could not be loaded.
  */
 public static function loadById($comment_id)
 {
     $comment = FALSE;
     if ($comment = comment_load($comment_id)) {
         $comment = new LingotekComment($comment);
         $comment->setApi(LingotekApi::instance());
     }
     return $comment;
 }