Skip to content
Snippets Groups Projects
Commit a4109b3b authored by Alex Pott's avatar Alex Pott
Browse files

Issue #466416 by mgifford, benjf, RobLoach | timtrinidad: Add Mouseover Title for dblog Entries.

parent e3e03023
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -173,7 +173,13 @@ public function overview() { ...@@ -173,7 +173,13 @@ public function overview() {
if ($message && isset($dblog->wid)) { if ($message && isset($dblog->wid)) {
// Truncate link_text to 56 chars of message. // Truncate link_text to 56 chars of message.
$log_text = Unicode::truncate(Xss::filter($message, array()), 56, TRUE, TRUE); $log_text = Unicode::truncate(Xss::filter($message, array()), 56, TRUE, TRUE);
$message = $this->l($log_text, 'dblog.event', array('event_id' => $dblog->wid), array('html' => TRUE)); $message = $this->l($log_text, 'dblog.event', array('event_id' => $dblog->wid), array(
'attributes' => array(
// Provide a title for the link for useful hover hints.
'title' => Unicode::truncate(strip_tags($message), 256, TRUE, TRUE),
),
'html' => TRUE,
));
} }
$username = array( $username = array(
'#theme' => 'username', '#theme' => 'username',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment