1 schema.inc public DatabaseSchema::prepareComment($comment, $length = NULL)

Prepare a table or column comment for database query.

Parameters

string $comment: The comment string to prepare.

int|null $length: Optional upper limit on the returned string length.

Return value

string: The prepared comment.

File

core/includes/database/schema.inc, line 741
Generic Database schema code.

Class

DatabaseSchema
Base class for database schema definitions.

Code

public function prepareComment($comment, $length = NULL) {
  return $this->connection->quote($comment);
}