| Versionen | |
|---|---|
| drupal7 | public DatabaseSchema::prepareComment($comment, $length = NULL) |
Prepare a table or column comment for database query.
$comment The comment string to prepare.
$length Optional upper limit on the returned string length.
The prepared comment.
includes/
<?php
public function prepareComment($comment, $length = NULL) {
// Decode HTML-encoded comments.
$comment = decode_entities(strip_tags($comment));
return $this->connection->quote($comment);
}
?>
Kommentare
Kommentar hinzufügen