prepareComment

  1. drupal
    1. drupal7
Versionen
drupal7 public DatabaseSchema::prepareComment($comment, $length = NULL)

Prepare a table or column comment for database query.

Übergabeparameter

$comment The comment string to prepare.

$length Optional upper limit on the returned string length.

Rückgabewert

The prepared comment.

Verwandte Themen

Code

includes/database/schema.inc, line 510

<?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

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen